2.设置ads工程
post-linker : ARM fromELF
ARM Assembler/ARM C Compiler : ARM902T
ARM Linker -> Output -> RO Base : 0x30000000
-> Options -> Image entry point : 0x30000000
-> Layout -> Object/Symbol : call_C_func.o
-> Section : init
3.设置axd调试:
3-1) 设置"启动AXD时自 动初始化SDRAM":
Options-> Configure Interface-> Session File
勾上Run Configration Script
按Browse把脚本文件2440init.txt加进来
脚本2440init.txt:
setmem 0x53000000,0x00000000,32
setmem 0x4a000008,0xffffffff,32
setmem 0x4a00001c,0x00007fff,32
setmem 0x48000000,0x2212d110,32
setmem 0x48000004,0x00000f40,32
setmem 0x48000008,0x00002e50,32
setmem 0x4800000c,0x00002e50,32
setmem 0x48000010,0x00002e50,32
setmem 0x48000014,0x00002e50,32
setmem 0x48000018,0x00002e50,32
setmem 0x4800001c,0x00018005,32
setmem 0x48000020,0x00018005,32
setmem 0x48000024,0x00960542,32
setmem 0x48000028,0x00000032,32
setmem 0x4800002c,0x00000030,32
setmem 0x48000030,0x00000030,32
其实这个命令的作用就是设置CPU的看门狗,中断等等.
3-2) 设置"连接JINK调试库"
Options-> Configur Target
按Add 把 Jlink安装目录下的JLinkRDI.dll加进来
按Configure 生效
按OK 结束设置.
3-3) 重启一下AXD 就可以调试了.
相关阅读:http://www.linuxidc.com/search.aspx?where=nkey&keyword=21080
