TA的每日心情 | 开心 2022-4-12 14:51 |
---|
签到天数: 163 天 连续签到: 1 天 [LV.7]常住居民III
|
SAMA5D3提供的IAR例程可通过SAM-BA软件有DEBUG引脚写入开发板中,或通过SAM-BCE ATMEL公司JTAG下载器写入
1.测试电脑使用win7系统,开发板自动装载驱动后如下:
2.使用常用串口调试软件,波特率设置为115200,N 8 1模式,字符形式显示,初始上电“DEBUG串口”输出信息中,
2.1
系统启动信息“AT91Bootstrap 3.6.1-00078-g5415d4e (Tue Feb 4 15:36:46 CET 2014)”
2.2
UBOOT信息“U-Boot 2013.07 (Feb 04 2014 - 15:36:32)”,
2.3
linux内核信息“Linux version 3.10.0-yocto-standard (nferre@tenerife) (gcc version 4.8.1 (GCC) ) #1 Wed Feb 5 10:03:20 CET 2014”(基于3.10.0内核的yocto系统),
2.4
CPU处理器信息“CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=50c5387d”
开发板信息“Machine: Atmel SAMA5 (Device Tree), model: SAMA5D3 Xplained”
2.5
“Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
modules : 0xbf800000 - 0xc0000000 ( 8 MB)
.text : 0xc0008000 - 0xc05b4fc8 (5812 kB)
.init : 0xc05b5000 - 0xc05d2d60 ( 120 kB)
.data : 0xc05d4000 - 0xc063a9f8 ( 411 kB)
.bss : 0xc063a9f8 - 0xc0663820 ( 164 kB)
”
3.使用ATMEL官网下载的“ATSAMA5D3-XPLD_test_10_public”开发板test_10公版测试文件说明书,将“SDcard_IMAGE”下所有文件复制到SD卡根目录下,连接网线,上电后“DEBUG串口”输出信息
3.1
系统启动信息“AT91Bootstrap 3.6.1-00078-g5415d4e-dirty (Fri Feb 7 11:19:48 CET 2014)”(与开发板初始程序日期不同)
3.2
程序装载由SD卡载入:“
SD/MMC: Image: Read file prod.bin to 0x26f00000
Cmd: 0x1 Response Time-out
SD: Card Capacity: High or Extended
SD: Specification Version 3.0X
SD/MMC: Done to load image”
3.3
板卡信息:“
_[34m----------------------------------------------------------
TEST BOARD APPLICATION
Board : SAMA5D3_XPLD
Version: 3.1(Feb 12 2014 - 08:48:09)
_DDR2 start add: 0x20000000
_DDR2 end add : 0x28000000
_MAIN_OSC : 132MHz
----------------------------------------------------------”
3.4
测试中,网线使用的直连的,没找到交叉网线,所以
网口测试失败“-E- GETH->EMAC <-] .===> FAILED”
编注:网口测试失败:
“[35m-E- FAILED: ReSeT board to test again![0m
-E- Reset board or Wait auto-reboot....” ,
提示重启线路板或等待自动重启再次测试,不会进入3.5- bootstrap开始擦除nand flash存储芯片并写入程序
换上交叉网线后正常:“
_[35m-I- TEST OK : HW BOARD VALIDATED_[0m
-I- BackupReg set and RESET MPU
-I- Wait auto-reboot....
”
3.5
硬件测试完成后,
bootstrap开始擦除nand flash存储芯片“
NAND erase: device 0 whole chip
Erasing at 0x0 -- 0% complete.
Erasing at 0x280000 -- 1% complete.
&hellip;.......
Erasing at 0xffe0000 -- 100% complete.
OK
mci: setting clock 257812 Hz, block size 512
mci: setting clock 257812 Hz, block size 512
mci: setting clock 257812 Hz, block size 512
mci: setting clock 257812 Hz, block size 512
mci: setting clock 22000000 Hz, block size 512
reading sama5d3_xplained-nandflashboot-uboot-3.6.1.bin.samba
10416 bytes read in 13 ms (782.2 KiB/s)
”
并写入程序“
NAND write: device 0 offset 0x0, size 0x28b0
10416 bytes written: OK
reading u-boot-sama5d3_xplained-v2013.07-at91-r1.bin
462092 bytes read in 79 ms (5.6 MiB/s)
NAND write: device 0 offset 0x40000, size 0x70d0c
462092 bytes written: OK
reading u-boot-sama5d3_xplained-v2013.07-at91-r1.bin
462092 bytes read in 80 ms (5.5 MiB/s)
NAND write: device 0 offset 0xc0000, size 0x70d0c
462092 bytes written: OK
reading at91-sama5d3_xplained.dtb
20551 bytes read in 12 ms (1.6 MiB/s)
NAND write: device 0 offset 0x180000, size 0x5047
20551 bytes written: OK
reading zImage-sama5d3_xplained.bin
3391016 bytes read in 520 ms (6.2 MiB/s)
NAND write: device 0 offset 0x200000, size 0x33be28
3391016 bytes written: OK
reading atmel-xplained-demo-image-sama5d3_xplained.ubi
91619328 bytes read in 13827 ms (6.3 MiB/s)
NAND write: device 0 offset 0x800000, size 0x5760000
91619328 bytes written: OK
resetting ...”
pdf文档中提示:写入程序时间为1分20秒,不要断电插拔USB线
写入程序完成后,开发板“DEBUG串口”输出信息即恢复为初始信息;开发板借用归还时可用SD卡或SAM-BA写入TEST-10恢复为出厂设置即可。 |
|