OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 9077|回复: 9

请教仿真问题

[复制链接]

58

主题

288

帖子

1

精华

高级会员

Rank: 4

积分
814
金钱
814
注册时间
2012-3-29
在线时间
81 小时
发表于 2012-4-2 09:13:47 | 显示全部楼层 |阅读模式
    用仿真的时候出现这样的错误:*** error 65: access violation at 0x0000000C : no 'read' permission。是哪里设置出了问题呢?我在keil里面已经设置仿真了。
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

86

主题

983

帖子

0

精华

论坛大神

Rank: 7Rank: 7Rank: 7

积分
1848
金钱
1848
注册时间
2013-4-15
在线时间
163 小时
发表于 2015-10-27 21:07:40 | 显示全部楼层
回复【9楼】小学生一号:
---------------------------------
我调试是M0+内核的STM32L051K6T6

Dialog DLL 分别为:DARMSTM.DLL
和 TARMSTM.DLL, arameter 均为: -pSTM32L051K6


可还是报同样的错误
合肥-文盲
回复 支持 1 反对 0

使用道具 举报

2

主题

7

帖子

0

精华

初级会员

Rank: 2

积分
64
金钱
64
注册时间
2012-4-2
在线时间
14 小时
发表于 2012-4-2 09:54:02 | 显示全部楼层
回复【楼主位】业未央:
---------------------------------
CAUSE
When the ?Vision 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 roject -> 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

试下
回复 支持 反对

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165540
金钱
165540
注册时间
2010-12-1
在线时间
2117 小时
发表于 2012-4-2 10:50:40 | 显示全部楼层
软件仿真?
回复 支持 反对

使用道具 举报

58

主题

288

帖子

1

精华

高级会员

Rank: 4

积分
814
金钱
814
注册时间
2012-3-29
在线时间
81 小时
 楼主| 发表于 2012-4-4 23:19:24 | 显示全部楼层
回复【3楼】正点原子:
---------------------------------
回复 支持 反对

使用道具 举报

58

主题

288

帖子

1

精华

高级会员

Rank: 4

积分
814
金钱
814
注册时间
2012-3-29
在线时间
81 小时
 楼主| 发表于 2012-4-4 23:25:56 | 显示全部楼层
回复【2楼】mculove:
---------------------------------
在JLinkSettings.ini中添加吗?
回复 支持 反对

使用道具 举报

15

主题

79

帖子

0

精华

初级会员

Rank: 2

积分
167
金钱
167
注册时间
2012-8-7
在线时间
7 小时
发表于 2012-8-13 10:18:13 | 显示全部楼层
我也遇到了这个问题,请问楼主解决了吗????????解决了分享下哦。。。
【好好学习天天向上】
回复 支持 反对

使用道具 举报

0

主题

11

帖子

0

精华

新手上路

积分
48
金钱
48
注册时间
2015-2-12
在线时间
3 小时
发表于 2015-4-8 11:55:46 | 显示全部楼层
我用keil5 仿真 选use Simulator 然后debug就出现这个错误,使用keil4 时没有问题的,有哪位大神知道怎么解决了吗?
回复 支持 反对

使用道具 举报

0

主题

11

帖子

0

精华

新手上路

积分
48
金钱
48
注册时间
2015-2-12
在线时间
3 小时
发表于 2015-4-8 15:26:34 | 显示全部楼层
找到一个解决问题的,楼主说是在原子哥视频里有讲过,我还没找到视频里说的那段,不过确实解决我的问题了,分享给大家。 http://blog.csdn.net/stephen_yu/article/details/7725247
回复 支持 反对

使用道具 举报

12

主题

50

帖子

0

精华

新手入门

积分
14
金钱
14
注册时间
2017-9-6
在线时间
23 小时
发表于 2017-9-7 14:41:05 | 显示全部楼层
合肥-文盲 发表于 2015-10-27 21:07
回复【9楼】小学生一号:
---------------------------------
我调试是M0+内核的STM32L051K6T6

Dialog&nbsp ...

请问应该怎么设置呢 谢谢了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-19 03:35

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表