bradb,
Nice solution - reminds me of the old serial bootloaders where they would look for a single character on the com port at startup and use that to enter bootloader mode.
Giving the pic the ability to put itself into bootload mode rather than requiring a crazy key combination on reset, which some poor end user will manage to do while trying to mount a device in the wall is a great idea.
I notice you removed the blinky led code in the HID Bootloader to code - how much bigger does the read and write eeprom code make the bootloader code ? - from memory the HID one is about 1100 bytes.
Hmm, wonder if I could make it work with an I2C eeprom... I knew there was a reason the 18F2550 would be better than the 18f2450...
Quick thought though - what happens if you PBP program gets trashed ? - how can you get the unit into bootloader mode to get new code into it? I am thinking bootload session that crashes out half way through or cable falls out etc. - would it be better to write the eeprom once the bootloader has completed sucessfully, say after the ProcessIO() call in the HID bootlader code ?
Good work,
bill
Bookmarks