分类: 嵌入式
2011-06-27 10:05:33
1、加入系统文件
2440init.s 2440slib.s 2440lib.c
2440addr.h 2440lib.h 2440slib.h option.h def.h
2、在DebugRel Settings中设置
A)、如果要生成二进制文件,在:Target->Target Setting->Post-linker中选ARM fromELF
B)、Language Settings->ARM Assembler
ARM C Compiler
ARM C++ Compiler
处理器类型都选为ARM920T
C)、Linker->ARM Linker
Output->Linktype(Simple)
->R0 Base(0x30000000)
D)、Options->Image entry point(0x30000000)
E)、Layout->Object/Symbol(2440init.o)
->Section(Init)
3、AXD的设置
Options->Configure Target
点“Add”,使用HJTAG时,找到HJTAG目录下的H-JTAG.dll,加进来,然后点"Congigure"
使用JLink时,找到JLink目录下的JLinkRDI.dll,加进来,然后点"Congigure"( tx2440Jlink配置.rar )
写一个SDRAM初始化文件,类型为txt或ini
Options->Configure Interface->Session File
选择Run Configuration Script
把SDRAM初始化文件加进来
TX2440A的SDRAM初始化文件内容 2440init.txt 2440init.rar
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