Forum : 8051
Original Post
Post Information | Post |
---|---|
August 15, 2007 - 11:29pm
|
I'm programming the Flash of a Silicon Labs MCU from an 8051-resident application. Is there any way to show the results of this Flash programming in the RIDE debugger? The code window shows what was downloaded to the MCU, but this display doesn't change when the Flash is reprogrammed by the embedded application. regards Steven Pruzina |
Hi Steven,
are you using IAP to reprogram the Flash at runtime ? Can you send me a sample code that does not work?
regards
Lionel
Hello Lionel
The IAP is in top of Flash (0xF000 - 0xFFFF). I put it there with the RIDE debugger via Silabs JTAG and then ran it from the debugger. This IAP program then downloads another (50K) application from UART0, writes this into the bottom 60K (0x0000 - 0xEFFF) and then transfers control to that application. This application does run, so it's in there, in Flash. The RIDE debugger remained active during the download. Once thats done I halt the debugger and look in the 'Code View' window for the new application. Its doesn't show up; the window displays just the IAP code at 0xFFFF - 0xFFFF; it reads 0xFF's everywhere else.
I wouldn't expect the disassembly window to display anything sensible because the debugger has no entry point for the Flashed application. However it seems that the 'Code View' window doesn't refresh itself from the Flash contents
regards Steven
I have the same problem
In the SILAb IDE I can see the changging of the Flash
Hello,
we will try to modify the SiLabs driver to provide code view refreshes. For now, when the code itself modifies the FLash, the CODE memory space is not re-read from the chip, so the debugger is not warned about the change.
Lionel