call serial boot loader from user program

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

call serial boot loader from user program

1,407 次查看
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
标签 (1)
标记 (1)
0 项奖励
回复
1 回复

854 次查看
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 项奖励
回复