这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » 求个实现nand的tffs的nftllite.c 文件,多谢

共2条 1/1 1 跳转至

求个实现nand的tffs的nftllite.c 文件,多谢

菜鸟
2010-12-10 11:01:31     打赏
我实现了nand的MTD,有人说直接用ftl就可以挂载成功,但是我会挂在某一个block的写上,
log在下面
写地址0x10014的时候,写入成功,但是读出对比不一致,而且系统读写的长度0x4c和0x2是什么意思?header好像是0x44啊,
有哪位成功的指点下,或者传个nftllite.c和相应的头文件给我,我的邮箱copyman39339005@gmail.com,多谢

Debug: Identified K9F1208.
firstBlock = 0x0, numOfBlock = 0x4
ERASE: blockNo = 0x0
ERASE: blockNo = 0x1
ERASE: blockNo = 0x2
ERASE: blockNo = 0x3
read before write
ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,
13,3,43,49,53,46,ff,0,46,54,4c,31,30,30,0,1,1,0,0,0,ff,ff,9,10,0,0,0,4,0,26,dd,3,0,0,1,0,e5,3,0,ff,0,0,0,0,0,0,0,0,44,0,0,0,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,30,0,0,0,30,0,0,0,
13,3,43,49,53,46,ff,0,46,54,4c,31,30,30,0,1,1,0,0,0,ff,ff,9,10,0,0,0,4,0,26,dd,3,0,0,1,0,e5,3,0,ff,0,0,0,0,0,0,0,0,44,0,0,0,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,30,0,0,0,30,0,0,0,
WRITE: address = 0x0, length = 0x4c, mode = 0, status=0
read before write
3,43,
0,0,
0,0,
WRITE: address = 0x14, length = 0x2, mode = 1, status=0
firstBlock = 0x4, numOfBlock = 0x4
ERASE: blockNo = 0x4
ERASE: blockNo = 0x5
ERASE: blockNo = 0x6
ERASE: blockNo = 0x7
read before write
ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,
13,0,0,49,53,46,ff,0,46,54,4c,31,30,30,0,1,2,0,0,0,ff,ff,9,10,0,0,0,4,0,26,dd,3,0,0,1,0,e5,3,0,ff,0,0,0,0,0,0,0,0,44,0,0,0,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,30,0,0,0,30,0,0,0,
13,0,0,49,53,46,ff,0,46,54,4c,31,30,30,0,1,2,0,0,0,ff,ff,9,10,0,0,0,4,0,26,dd,3,0,0,1,0,e5,3,0,ff,0,0,0,0,0,0,0,0,44,0,0,0,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,30,0,0,0,30,0,0,0,
WRITE: address = 0x10000, length = 0x4c, mode = 0, status=0
read before write
0,0,
1,0,
0,0,
write 00010014 error! status=0
WRITE: address = 0x10014, length = 0x2, mode = 1, status=29



关键词: 求个     实现     nftllite.c     文件     多谢    

菜鸟
2010-12-10 11:42:29     打赏
2楼

而且,在第二次写的时候,偏移地址是0x14,在读取前读取这个位置的数据,发现读取的居然是0x01的地址,但是,且写的也是这个地址,检查过函数里面的偏移地址,col_addr都是没问题的,请问大家遇到过这个情况吗?比较奇怪?MTD有问题?


共2条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]