|
Written by Evan
|
|
Wednesday, 28 March 2007 |
|
I've updated the last page of the bootloader article with the latest revision of my more utilitarian version of the bootloader software. Rob Edwards modified the Microchip bootloader firmware to allow it to enter boot mode based not only on button presses, but also on a 'flag' value written to a particular EEPROM location, so by writing this flag value in user code and resetting, bootload mode can be entered entirely in software. The bootloader HEX is available, and I've added a button to the bootloader software to send the command 0xFE to the PIC (assuming you're using the 'generic' type device described in my other tutorials). All that you need to do is write the flag value to EEPROM in your user code when this command is received, and then the bootloader program has full control of user/boot mode.
|