免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2015 | 回复: 0

[BootLoader] 请教dataflash无法写入内核文件,高手帮忙啊! [复制链接]

论坛徽章:
0
发表于 2010-12-07 23:24 |显示全部楼层
dataflash芯片采用AT45DB642;
采用SAM_BA烧写程序的时候发现这样的问题;

擦除整个flash没有问题:
I- === Erase all the DataFlash blocs and test the erasing ===
-I- Erasing: 0x80E80 bytes at address 0x0
-I- Erasing: 0x80E80 bytes at address 0x80E80
-I- Erasing: 0x80E80 bytes at address 0x101D00
-I- Erasing: 0x80E80 bytes at address 0x182B80
-I- Erasing: 0x80E80 bytes at address 0x203A00
-I- Erasing: 0x80E80 bytes at address 0x284880
-I- Erasing: 0x80E80 bytes at address 0x305700
-I- Erasing: 0x80E80 bytes at address 0x386580
-I- Erasing: 0x80E80 bytes at address 0x407400
-I- Erasing: 0x80E80 bytes at address 0x488280
-I- Erasing: 0x80E80 bytes at address 0x509100
-I- Erasing: 0x80E80 bytes at address 0x589F80
-I- Erasing: 0x80E80 bytes at address 0x60AE00
-I- Erasing: 0x80E80 bytes at address 0x68BC80
-I- Erasing: 0x80E80 bytes at address 0x70CB00
-I- Erasing: 0x80E80 bytes at address 0x78D980
-I- Erasing: 0x80E80 bytes at address 0x80E800


烧写u-boot.bin也没有问题,uboot为156K
GENERIC::SendFile u-boot-1.3.4-exp.4-at91sam9g20ek_2mmc-dataflash_cs1.bin at address 0x8400
-I- File size : 0x270AC byte(s)
-I- Writing: 0x270AC bytes at 0x8400 (buffer addr : 0x20002A70)
-I- 0x270AC bytes written by applet

但是烧写内核文件的时候,SAM_BA就卡死了
GENERIC::SendFile uImage-2.6.30-r1-at91sam9g20ek_2mmc.bin at address 0x42000
-I- File size : 0x1A3534 byte(s)
-I- Writing: 0x80E80 bytes at 0x42000 (buffer addr : 0x20002A70)
内核文件比较大,1.6M左右,需要分块的写入,但是每到这里就卡死了

是硬件的问题还是dataflash.bin对芯片的没有正确初始化啊?
高手帮忙啊,救命啊,郁闷死了。。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP