在 MDKA5D3X-EK 上通过at91bootstrap加载裸机程序到DDR2
By Mcuzone
bin文件能加载的用户裸机程序小于等于64K字节
代码是从0x20000000开始执行
编译的时候link地址要注意,还有中断处理也得自己处理
中断可以将sram remap到0,然后在其中安装中断向量
也可以用户程序从0开始link
进入ddr2在0x2000000开始运行后,使用mmu将ddr2映射到0
samba 连接目标板, send boot file :at91sama5d3xek-nandflashboot-softapp-3.5.4.bin
0x40000 app.bin
代码是从0x20000000开始执行
编译的时候link地址要注意,还有中断处理也得自己处理
中断可以将sram remap到0,然后在其中安装中断向量
也可以用户程序从0开始link
进入ddr2在0x2000000开始运行后,使用mmu将ddr2映射到0
samba 连接目标板, send boot file :at91sama5d3xek-nandflashboot-softapp-3.5.4.bin
0x40000 app.bin
emac_uip_helloworld
C:\xxx\IAR Systems\Embedded Workbench 6.5\arm\examples\Atmel\sama5d3x-ek\examples_ethernet\emac_uip_helloworld\build\ewarm
C:\xxx\IAR Systems\Embedded Workbench 6.5\arm\examples\Atmel\sama5d3x-ek\examples_ethernet\emac_uip_helloworld\build\ewarm
RomBOOT
AT91Bootstrap 3.5.4-00007-g7162da9-dirty (Fri Nov 8 13:05:12 CST 2013)
1-Wire: Loading 1-Wire information ...
1-Wire: ROM Searching ... Done, 0x0 1-Wire chips found
WARNING: 1-Wire: No 1-Wire chip found
1-Wire: Using defalt value SYS_GPBR2: 0x481242a, SYS_GPBR3: 0x6a0823
NAND: ONFI flash detected
NAND: Manufacturer ID: 0x2c Chip ID: 0x32
NAND: Disable On-Die ECC
NAND: Initialize PMECC params, cap: 0x4, sector: 0x200
NAND: Image: Copy 0x80000 bytes from 0x40000 to 0x20000000
NAND: Done to load image
-I- MMU enabled.
-I- I cache is already enabled.
-I- D cache enabled.
-- EMAC uIP Hello World Example 1.3.1 --
-- SAMA5D3X-EK
-- Compiled: Nov 8 2013 11:40:45 --
- MAC 3a:1f:34:8:54:54
- Host IP 192.168.1.174
- Router IP 192.168.1.1
- Net Mask 255.255.254.0
** Valid PHY Found: 1
AutoNegotiate complete
P: Link detected
P: hello-world application init
AT91Bootstrap 3.5.4-00007-g7162da9-dirty (Fri Nov 8 13:05:12 CST 2013)
1-Wire: Loading 1-Wire information ...
1-Wire: ROM Searching ... Done, 0x0 1-Wire chips found
WARNING: 1-Wire: No 1-Wire chip found
1-Wire: Using defalt value SYS_GPBR2: 0x481242a, SYS_GPBR3: 0x6a0823
NAND: ONFI flash detected
NAND: Manufacturer ID: 0x2c Chip ID: 0x32
NAND: Disable On-Die ECC
NAND: Initialize PMECC params, cap: 0x4, sector: 0x200
NAND: Image: Copy 0x80000 bytes from 0x40000 to 0x20000000
NAND: Done to load image
-I- MMU enabled.
-I- I cache is already enabled.
-I- D cache enabled.
-- EMAC uIP Hello World Example 1.3.1 --
-- SAMA5D3X-EK
-- Compiled: Nov 8 2013 11:40:45 --
- MAC 3a:1f:34:8:54:54
- Host IP 192.168.1.174
- Router IP 192.168.1.1
- Net Mask 255.255.254.0
** Valid PHY Found: 1
AutoNegotiate complete
P: Link detected
P: hello-world application init