Common problems with realviewmdk access violation at 0 xfffffffc: no "write" permission

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.