piedgogo 发表于 2011-5-18 23:23:52

RealView MDK调试错误,求解答

我的程序

;*************************************************
;It's my first arm-asm programm
;Hello arm!
;
;2011-05-17
;
;*************************************************
;constant define
;*************************************************
x            EQU    45;
y            EQU    20;
stack_top    EQU 0x30200000;

    export Reset_Handler

;**************************************************
;code
;**************************************************
    AREA test,CODE,READONLY
            
Reset_Handler
            ldr      sp,=stack_top
            mov      r0,#x
            str      r0,
            mov      r0,#y
            ldr      r1,

            add      r0,r0,r1
stop                              
    end

inital文件

FUNC void Setup (void)
{
    // <o> Program Entry Point, .AXF File download Address
    PC = 0x030000000;
}   
map 0x00000000,0x00200000 read write exec //Map this memory to be read、write and exec
map 0x30000000,0x34000000 read write exec //Map this memeory to be read,write and exec
Setup();                                       // Setup for Running
//g, main

编译没问题,可是debug的时候出现error
*** error 65: access violation at 0x34000004 : no 'execute/read' permission

这是为那般啊,搞崩溃了快。。。跪求高手解答 T_T

flagyan 发表于 2011-5-19 00:28:14

报错信息不是很明确吗,0x34000004这个地址不在你的initial文件里map的范围。
页: [1]
查看完整版本: RealView MDK调试错误,求解答