hi i am looking for a solution that uVision4 accept to access memory location 0x40000004. I have set the R/W base to 0x40000000 in the Linker tab of a project properties and also set the IRAM size to 0xFFFF but when I try to simulate the following code, the simulator says:
"*** error 65: access violation at 0x40000004 : no 'write' permission"
ARM7 Little Endian is choose as device
the code is :
AREA ARMex, CODE, READONLY ENTRY MOV R0, #0x04 LDR R1, =0x40000004 STR R0, [R1] ; this line is not working in simulator l1 B l1 END
The code has no warning or error
Does anybody know what I should do to tell the simulator that 0x40000004 is a part of RAM ?
Hello sarmad jafari,
create a INI file containing the debug command
map 0x40000000, 0x400FFFFF READ WRITE
Include this INI file under Options for Target - Debug - Initialization File.
If the device is not simulated than you need to provide a INI file containig the necessary mapping. Please see http://www.keil.com/support/man/docs/uv4/uv4_debug_commands.htm
Best Regards, Martin Guenther