Keil Logo

µVISION DEBUGGER: ERROR 65 USING REMAP FEATURE ON ARM


Information in this article applies to:

  • µVision3 any Version
  • ARM Development Tools

QUESTION

I 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?

ANSWER

When 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 INFORMATION

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Thursday, January 11, 2007


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.