Thursday, August 20, 2015

ARM Development:: *** error 65: access violation at 0x40023800 : no 'read' permission --- FIX ARM

Hi,
Guess you are starting to learn the ARM development, and being a begineer in ARM,, getting this error is the most common issue... Its very easy to handle and it is fixable.. but you have to do it every time you start running the code in the keil simulator...


Before I recommend to view this page from ARM, you will get a basic idea what was that all about:

http://www.keil.com/support/docs/814.htm


So after reading this we know where the device MAP is but the question is what range of addresses I need to map:

Fro this we look at the error generated:

error 65: access violation at 0x40023800

Understanding the error:
From the documentation, form keil we understand that the address location pointed by the pointer in the RTOS, 0x40023800, is not available or the simulator cannot find the location. So it cannot perform read, write or execute anything at that location.

Resolve:
So now we try to map the range of addresses that the simulator want to access. For that , we see the error code and look for the address which is: 0x40023800.

Lets say we let it use the memory from 0x400000000 to  0x40FFFFFF, so that the location that the processor is trying to use is still in the range.

So we go to the

Debug-> Memory MAP
in the map range : 0x400000000,0x40FFFFFF
add these and select : read, write, execute.

and press run..









No comments:

Post a Comment