Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2565381
  • 博文数量: 320
  • 博客积分: 9650
  • 博客等级: 中将
  • 技术积分: 3886
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-27 21:05
文章分类

全部博文(320)

文章存档

2024年(1)

2017年(5)

2016年(10)

2015年(3)

2014年(3)

2013年(10)

2012年(26)

2011年(67)

2010年(186)

2009年(9)

分类:

2009-04-04 13:40:20

 

今天在软件调试s3c2440时,出现 *** error 65: access violation at 0x3105b104的问题,找到以下两篇文章,终于解决问题。

问题描述:
在调试S3C2410时出现“error:at 0x530000008:no write permission”等此类问题怎么解决
问题解答:
    去debug状态下,在Debug-.Memory Map对话框中,将提示有问题的那一小块地址按照需要的权限将具map range进去 ;

将要用到(添加)的内存映射写成*.ini文件,用Options for target "xxx"-.Debug-.Load Application at Startup装入

看看realview官网上的描述如下:

UVISION DEBUGGER: ERROR 65 (ACCESS VIOLATION)


Information in this article applies to:

  • µVision All Versions
  • Cx51 All Versions
  • C166 All Versions
  • C251 All Versions

SYMPTOMS

My project includes a variable that I access using an absolute memory address. The µVision Debugger generates the following error whenever I try to write to the variable:

*** Error 65: Access violation at 0x00000004 : No 'write' permission

I have specified this memory area to the linker but I still receive this error.

CAUSE

When the uVision Debugger loads an executable program, it creates a memory map using the program and data segments from the program. Code segments are marked as executable while data segments are marked as read/write. All other memory is unmapped and is, therefore, not marked for any type of access.

The µVision Debugger checks that all memory accesses are made to objects that are defined in your C program. For any access that is outside of a defined C object, the µVision debugger generates an error 65: access violation message.

By default, the debugger allows only memory accesses to valid data objects. This is useful for finding uninitialized or incorrectly initialized pointers, for example. Usually, there is a programming error when you try to access unexpected locations.

RESOLUTION

Enable memory regions for absolute memory accesses using the MAP debugger command or the Debug - Memory Map dialog. Define all the memory ranges that your program is permitted to access. Ensure that you set the permissions (read, write, execute) for each range to match your actual hardware.

You may put the required MAP commands into a debugger INI file that can be entered under Project -> Options for Target -> Debug -> Initialization file. For example, the content of such a file may be:

MAP  0xF800, 0xF8FF  READ WRITE  // allow R/W access to IO space

MORE INFORMATION

  • Refer to in the µVision User's Guide.
阅读(6994) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~