Common problems with realviewmdk
Author: Hua Qing foresight Lecturer, Zhao Ming
Currently, the most common arm programming tools on the market are real view MDK and IAR embedded workbench.
I personally think that IAR is a mature, stable, and easy to use advantage, which is favored by many embedded developers. Real view MDK is supported by arm and has powerful functions and is gradually improved.
When learning arm commands using real view (which is omitted as RV below), beginners often encounter error messages similar to the following during debugging.
Error 65: access violation at 0 xfffffffc: no "write" permission
This error occurs when you use the RV simulator (in 'debug' 'use simulator' mode) for debugging.
When this error occurs, if you observe the register, the address in the error message is the value of SP (R13. It can be inferred that an error occurs during the stack operation.
Why is an error occurring during stack operations? Because the current simulator is used, rather than the real target board, there is no definition of these memory areas.
Therefore, we must set the attribute of this memory address segment to readable/writable in the simulator.
The following uses the S3C2410 simulator as an example to describe several methods to solve the above problems:
Method 1: Open the option dialog box of the (Project-> options...) project, and change the DLL file name (darmss9.dll by default) in the 'Dialog dll 'of the 'debug' label to darmst9.dll.
Method 2: Write the following content in ini file (. ini file), indicating that the memory area is readable, writable, and executable.
Map 0xfffff000, 0 xffffffff read write Exec
Method 3: This is the modification method in the debugging process. Therefore, you must set this method each time you run it.
First enter the debugging mode (crtl + F5), then open the memory_map dialog box under the Debug menu, and add the new ing area (MAP range) and its attributes in this dialog box.
This article from csdn blog: http://blog.csdn.net/farsight2009/archive/2009/05/15/4189698.aspx