Hi,
We're evaluating the RM48 USB stick (TMDSRM48USB), and we're having some issues debugging the target reliably.
Short story:
I can start a debugging session and everything is OK, if I then terminate the debugging session, and then click the debug button again, I some times get the error:
CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0CortexR4: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
Now I've searched the forum and seen that others have seen this message, but I found nothing conclusive that I think relates to my case.
The longer story:
OS: Windows 7 64-Bit
CCS5: 5.5.0.00077
HW: RM48 USB stick (TMDSRM48USB) connected to laptop though an externaly powered USB hub. I also tried a direct connection without the hub - same issue.
Debugger connection: XDS100V2
Halcogen 3.08.01 - RM48L950 Freertos project.
Steps to reproduce
Click the debug button
Console output (verbose flash debugging enabled):
CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0CortexR4: Writing Flash @ Address 0x00000000 of Length 0x00002E30
CortexR4: Erasing Flash Bank 0, Sector 0
CortexR4: Verifying Flash @ Address 0x00000000 of length 0x00002E30
CortexR4: Finish Writing Flash @ Address 0x00000000 of Length 0x00002E30
CortexR4: Writing Flash @ Address 0x00008020 of Length 0x00007FF0
CortexR4: Erasing Flash Bank 0, Sector 1
CortexR4: Erasing Flash Bank 0, Sector 2
CortexR4: Verifying Flash @ Address 0x00008020 of length 0x00007FF0
CortexR4: Finish Writing Flash @ Address 0x00008020 of Length 0x00007FF0
CortexR4: Writing Flash @ Address 0x00010010 of Length 0x00001B54
CortexR4: Verifying Flash @ Address 0x00010010 of length 0x00001B54
CortexR4: Finish Writing Flash @ Address 0x00010010 of Length 0x00001B54
Debugger window is now launched with PC at main. I then press terminate
When I've returned to the normal view I again Click the debug button.
CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0CortexR4: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
If I then hit pause, I'm stuck in sys_intvecs.asm
undefEntry
b undefEntry <== Here
b vPortSWI
What puzzles me is that I do not change a single code line between failure and succes.
Any hints as to what might be causing the issue?
Best regards,
Nikolaj
Edit: Added Halcogen info