If you develop a bootloader, you might want to test it during its development. What better is there to see if a code is running, then a blinky? The blinky in the previous post is also the testing blinky for the bootloader.
So I download the blinky via the bootloader feature, and I want to check, if it got saved to the program flash. But turns out, you can't do that with MplabX, what a bummer!
I tried using the Program Memory View:
Eventually it should be the thing that I need.
But during writing the program memory, nothing really changes in the Program Memory View.
My bootloader code even worked, the blinky got downloaded over UART, and the LED blinked. So I tried the Program Memory View again, I let the bootloader download the code, and stopped it during the blinky part. Here is a video how it looked:
As you see the program is there, as it does not do madness. There is a dead simple delay with NOPs. Only you can't really see anything useful, besides the Program Counter.
I did a Bootloader project just in the near past with Atollic Truestudio and a Cortex M3, neither less to say, I could see the blinky appear there in the program code during execution, and I could step through it normally while it ran.
Hi
ReplyDeleteYou need to stop the debug-execution at point of interest (button 'Finish Debugger Session' in MPLAB X), read the device memory (button 'Read Device Memory Main Project' in MPLAB X) and then you can see the program memory up to date (with the 'Program Memory View' as described in your post).
Hopefully this helps.....