需要加入的文件:
2440init.s
2440slib.s
2440lib.c
2440addr.h
2440lib.h
2440slib.h
option.h
def.h
在DebugRel Settings中设置
Language Settings->ARM Assembler
Linker->ARM Linker
Output->Linktype(Simple)
Options->Image entry point(0x30000000)
Layout->Object/Symbol(2440init.o)
如果要生成二进制文件,在:
Target->Target Setting->Post-linker中选ARM fromELF
AXD的设置
Options->Configure Target
点“Add”,找到HJTAG目录下的H-JTAG.dll,加进来,
然后点"Congigure"
写一个SDRAM初始化文件,类型为txt或ini
Options->Configure Interface->Session File
选择Run Configuration Script
把SDRAM初始化文件加进来
/
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