I am trying to get the tinybld working on the PIC18F46J50. For testing, I have gotten the tinybld working on the PIC16F1827 successfully.
My problem is when I write the hex file via the Tiny Multi Bootloader+ (v0.11.0) to the device, app crashes. I did select all debug messages and this is what is generated:
Check device...
send: C1
receive: 32, 4A
In the main message window, checking the device shows:
Check Device...
Open COM4 serial port at 19200bd
Hardware RTS reseting Device
Found: 18F(J) w/64KB flash & 0B EEPROM
Close COM4 serial port
---------------------------------------------------------
When I go to write to the device is shows:
Check Device...
Open COM4 serial port at 19200bd
Hardware RTS reseting Device
Found: 18F(J) w/64KB flash & 0B EEPROM
Open HEX file: path/to/my/HEX/file.hex
then crashes.
I did get it to work once, but only once. Even in simulation mode the app crashes. I used this line from the "piccodes.ini" file for the "Virtual Device"
Hello forum,
I am trying to get the tinybld working on the PIC18F46J50. For testing, I have gotten the tinybld working on the PIC16F1827 successfully.
My problem is when I write the hex file via the Tiny Multi Bootloader+ (v0.11.0) to the device, app crashes. I did select all debug messages and this is what is generated:
In the main message window, checking the device shows:
When I go to write to the device is shows:
then crashes.
I did get it to work once, but only once. Even in simulation mode the app crashes. I used this line from the "piccodes.ini" file for the "Virtual Device"
My c program is compiled with the XC8 compiler. The program is super simple:
// config omitted #include <xc.h> void interrupt isr(void) { return; } void main(void) { return; }</xc.h>In the linker options, Memory Model, ROM ranges:
Here is the hex file:
Any tip would be very much appreciated
Update:
With the same hex file as above I found a way to generate more debug messages:
Check Device... Open COM4 serial port at 19200bd Hardware RTS reseting Device Device answer: 0x32 0x4A='J' byte OK, now check ID-code and Family... idCode = $32 family = J description = 18F(J) w/64KB flash & 0B EEPROM flash mem = 65536 bytes EEPROM mem = 0 bytes Bootloader size = 264 bytes Transfert block size = 64 bytes Found: 18F(J) w/64KB flash & 0B EEPROM Open HEX file: C:\my\path\to\file.hex Checking hex file: Hex file end line HEX sumary: INX8M, PIC16F + eeprom, total=22 bytes. Error: Hex file for PIC16F, PIC family mismatch. WARNING: Nothing was written! Close COM4 serial portWhat I find strange is in the last few lines:
is found, i've double cheched my complier setting and it is configured for the PIC18F46J50.
I hope this helps someone help me.
Last edit: Eric 2017-04-27