Is it possible to erase the flash before programming with HEX file?
I do a custom checksum of the flash to check integrity after the tiny bootloader has programmed. (Basically adding the content of the program store etc..)
But I've found an enomaliy
If a pre-existing program is in the flash then a program with a different more smaller program = checksum1
If I use a blank device then program with the same smaller program = checksum2
Checksum1 and checksum2 are different, because the Tiny bootloader+ v0.11.0 dos NOT erase first.
I'm using a PIC16F18855 device.
Thank you
Mark
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to erase the flash before programming with HEX file?
I do a custom checksum of the flash to check integrity after the tiny bootloader has programmed. (Basically adding the content of the program store etc..)
But I've found an enomaliy
If a pre-existing program is in the flash then a program with a different more smaller program = checksum1
If I use a blank device then program with the same smaller program = checksum2
Checksum1 and checksum2 are different, because the Tiny bootloader+ v0.11.0 dos NOT erase first.
I'm using a PIC16F18855 device.
Thank you
Mark
If you are using a PIC16F18855 why not use the Microchip USB bootloader?