2010-12-03, 20:57:17 (This post was last modified: 2012-12-22, 13:37:20 by Mikael Gustavsson.)
I followed the steps listed in the firmware manual and when I tried to run the bootloader, it keeps jumps back to address 0. I'm not very good in assembly language. I have included the assembly file. Any help would be appreciated. Thanks.
I'm using Microchip PIC24FJ256GA110 microprocessor. I have not tried to run the GUI yet because I want to make sure the bootloader works. Essentially, I placed a breakpoint at the "bra usrapp" instruction that it never hit and always reset to address zero. Another strange thing is that I can't debug the assembly code, I can only see the program memory.
As far as I understand that when the bootloader starts and waits x seconds for the UI to communicate otherwise it will jump to the user application. Therefore, I placed a breakpoint at the usrapp: jump instruction and it never get there. instead, it resets to address zero.
(2010-12-08, 22:50:29)Mikael Gustafsson Wrote: You say that debugging doesn't work but you expect a breakpoint to be hit?
Please try the bootloader for real and come back if you have any problems.
If you have problems with your debugger you might get help in the Microchip forums.