call serial boot loader from user program

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

call serial boot loader from user program

914 Views
bob_s
Contributor III
I am running CW 8.2.3 on a WinXP platform for a 56F8323. I want to call the boot loader program from my user program but have not been successful so far. Any suggestions? Thanks, Bob
Labels (1)
Tags (1)
0 Kudos
1 Reply

361 Views
Elar
Contributor I

I rewrote the serial programmer to do something similar. I set a byte in flash to either 0x0000 or 0x0001. On reset, the serial bootloader runs if that byte is equal to anything except 0x0001.  If I want to reload my code, my program sets this byte of flash to 0x0000 and causes a software reset. When my program initializes it sets it back to 0x0001. Has been working for me so far.

0 Kudos