| |||||
Technical Support Support Resources
Product Information | µVISION DEBUGGER: ERROR 65 USING REMAP FEATURE ON ARMInformation in this article applies to:
QUESTIONI am using the µVision Simulator on an STR7xx device. When I start the simulator, I have the following memory map: MAP 0x00000000 - 0x0003FFFF exec read 0x20000000 - 0x2000FFFF read write : : During run-time, I copy program code into the RAM and use the PCU_BOOTCR register to remap the RAM on the fly to address space 0 using the instruction: PCU->BOOTCR |= 2 Everything works just fine, however the memory map for address region is now: MAP 0x00000000 - 0x0000FFFF read write // this should be executable!! 0x20000000 - 0x2000FFFF read write : : When there is an interrupt in my program, the simulator reacts correctly with: *** error 65: access violation at 0x00000008 : no 'execute/read' permission This is the correct behavior according to the memory map, but prevents correct code execution. Is there a solution to my problem? ANSWERWhen you REMAP the RAM to the memory region 0, the mapping attributes are taken from the original RAM region. Change the mapping for the RAM region using the MAP command as shown below: MAP 0x20000000, 0x2000003F read write exec This also changes the mapping for region 0 once you have remapped the RAM. MORE INFORMATIONFORUM THREADSThe following Discussion Forum threads may provide information related to this topic. Last Reviewed: Thursday, January 11, 2007 | ||||
| |||||