revision 88
Bootloading a simple BlinkLED through UART1 at 256000. The BlinkLED application works, but the config bits are erased. The PIC speed is affected, but it can be seen that the BlinkLED application is running (very slow).
Added code in the PC app to remove any erase or write blocks that would erase the configuration or bootloader code before it is written to the MCU.
Note:
It is a necessary condition that the configuration of the application match the configuration of the bootloader code for this (and most others) bootloader
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
here are the 3 hex files
Bootloader Log, no debug log.
Link Received
Sending Sync to connect to Bootloader
Sync Received: Entering Bootloader Mode
Requesting Flash Info
Flash Info Request Received
Creating Loader
Parsing HEX file
Creating Erase Block List
Creating Write Block List
Fixing up Jump Addresses
Erasing MCU program area...
Setting Erase Address: 1D000000
Erasing: 1024 byte block
Erase Blocks Done Received
Setting Erase Address: 1D07E000
Erasing: 1024 byte block
Erase Blocks Done Received
Setting Erase Address: 1FC00000
Erasing: 2048 byte block
Erase Blocks Done Received
Setting Erase Address: 1FC02000
Erasing: 1024 byte block
Erase Blocks Done Received
Writing Blocks
Setting Write Address: 1D000000
Writing Block: 320 byte block
Write Block Done Received
Setting Write Address: 1D07EFF0
Writing Block: 16 byte block
Write Block Done Received
Setting Write Address: 1FC00000
Writing Block: 4096 byte block
Write Block Done Received
Setting Write Address: 1FC00400
Writing Block: 400 byte block
Write Block Done Received
Resetting MCU
UnLink Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
Unknown Message Received
"Unknown Message Received" is received because the config bits are erased, so the baud rate is different.
Added code in the PC app to remove any erase or write blocks that would erase the configuration or bootloader code before it is written to the MCU.
Note:
It is a necessary condition that the configuration of the application match the configuration of the bootloader code for this (and most others) bootloader