实验用soc:s3c2440 分析原因:内存访问权限错误 解决办法: 1. 调试 开始后使用map命令进行分段更改内存访问权限 例如 调试 小程序时,仅在0~4kb范围内寻址时, 出现 : *** error 65: access violation at 0x00000ffc : no 'write' permission *** error 6
实验用soc:s3c2440
分析原因:内存访问权限错误
解决办法:
1.调试开始后使用map命令进行分段更改内存访问权限
例如调试小程序时,仅在0~4kb范围内寻址时,出现:
*** error 65: access violation at 0x00000ffc : no 'write' permission
*** error 65: access violation at 0x000000b4 : no 'write' permission
...
等错误
在command窗口输入
map 0,4095 read write exec
回车,pc复位,go,即可解决问题。
更多解释:
map命令更改内存访问权限只能对16mb以内的区域进行设定
使用规则如下:如需更详细,请参见keil的help文档
syntaxdescription
map displays the current memory map.
map start, end read write exec vnm maps the specified memory range (start-end) accesses as specified.
map start, end clear clears a mapped memory range.
