nandflash中sector是什么单位啊?

Chubbymale 2010-09-20 11:37:30
高手看下这个:INFO: Successfully formatted NAND.
INFO: Creating new BinFS partition.
IsValidMBR: MBR sector = 0x220
OpenPartition: Partition Exists=0x0 for part 0x21.
CreatePartition: Enter CreatePartition for 0x21.
LastLogSector: Last log sector is: 0x615f.
CreatePartition: Start = 0x1, Num = 0x6000.
Log2Phys: Logical 0x1 -> Physical 0x221
WriteMBR: MBR block = 0x11.
INFO: Successfully created BinFS partition.
ERROR: Existing BINFS partition too small to store image. Please perform a low level format first!
WARNING: OEMLaunch: Failed to store image to NAND.
我改了几次(Start = 0x1, Num = 0x6000)NUM的大小了,为什么还说Existing BINFS partition too small to store image。是不是哪里还需要修改的
我只改了这里:hPart = BP_OpenPartition(NEXT_FREE_LOC, 0x6000,//dwNumSectors,
PART_BINFS, TRUE, PART_OPEN_ALWAYS);
...全文
1288 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
dian_technology 2010-09-21
  • 打赏
  • 举报
回复
sector是FLASH操作的基本单位。
由于FLASH的特性,存储信号只能从1变到0,所以,每次新的写入都必须重新擦除,而擦除操作是sector为单位进行的。
NAND FLASH的sector大小有两种,一种是楼上所说的512+16,这种的NAND FLASH一般是64M以下的;
一种是2048+64,这种NAND FLASH 一般都是128M以上的。
chinesedragon2010 2010-09-21
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 chubbymale 的回复:]
引用 3 楼 chinesedragon2010 的回复:
楼主的NK.BIN有大多啊,如果楼主dwNumSectors=0x6000,这样算起来才不到13MB,我相信你的NK.BIN一般都大于13MB吧?

哦,是这样算的,我的nand是64M的,刚又发现,
EraseBlocks: preserving reserved block (0x0)
。。。。。。。。。。。。。。。。
……
[/Quote]
ERROR: Existing BINFS partition too small to store image. Please perform a low level format first!
--->根据你的信息,好想是在写flash之前还没有格式化或者是还没有格式化成功。
Chubbymale 2010-09-21
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 chinesedragon2010 的回复:]
楼主的NK.BIN有大多啊,如果楼主dwNumSectors=0x6000,这样算起来才不到13MB,我相信你的NK.BIN一般都大于13MB吧?
[/Quote]
哦,是这样算的,我的nand是64M的,刚又发现,
EraseBlocks: preserving reserved block (0x0)
。。。。。。。。。。。。。。。。
EraseBlocks: preserving reserved block (0xfff)

这个应该是保留块,怎么解决这个问题啊?
丰满 2010-09-21
  • 打赏
  • 举报
回复
sector在nandflash中是512+16=528byte的扇区
chinesedragon2010 2010-09-21
  • 打赏
  • 举报
回复
楼主的NK.BIN有大多啊,如果楼主dwNumSectors=0x6000,这样算起来才不到13MB,我相信你的NK.BIN一般都大于13MB吧?
chinesedragon2010 2010-09-21
  • 打赏
  • 举报
回复
在nandflash中一个sector是512+16=528byte
chinesedragon2010 2010-09-21
  • 打赏
  • 举报
回复
在nandflash中一个sector是512+16=518byte

19,524

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧