在 MDKA5D3X-EK 上通过at91bootstrap加载裸机程序到DDR2

在 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


    
  

emac_uip_helloworld

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值