This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm6437固化,从eeprom和flash中做二次引导。出了点问题,请大家指点哪有问题。



最近在弄dm6437固化,从eeprom和flash中做二次引导。出了点问题,请大家指点哪有问题。

过程:

1.烧写eepromWriter.out ,运行代码, 导入i2cboot_i2c.bin文件

2.烧写NANDWriter.out ,运行代码, 导入DES_led1.bin文件

可是在第二步的时候,出现错误。

————————————————————————————————————————————

Starting test of NAND Flash...
Starting NANDWriter.
Initializing NAND flash...
Manufacturer ID = 0x00000020
Device ID = 0x00000076
Pages Per Block = 0x32
Number of Blocks = 0x4096
Bytes Per Page = 0x512
Total blocks: 4096
Total pages: 131072
Total bytes: 67108864
Enter the File Name
DES_led1.bin
Number of blocks needed for writing: 0x00000001
Attempting to start in block number 0x00000001
Erasing blocks 0x00000001 through 0x00000001.
Writing 512 bytes of data:
Data mismatch! Verification failed.
Block = 1
Page = 0
i = 1
src[i] = 8
dest[i] = 202
NAND_VerifyPage() failed.
Skipping bad block at block number :1:
Attempting to start in block number 0x00000002
Erasing blocks 0x00000002 through 0x00000002.
Writing 512 bytes of data:
Data mismatch! Verification failed.
Block = 2
Page = 0
i = 1
src[i] = 8
dest[i] = 202
NAND_VerifyPage() failed.
Skipping bad block at block number :2:
Attempting to start in block number 0x00000003
Erasing blocks 0x00000003 through 0x00000003.
Writing 512 bytes of data:
Data mismatch! Verification failed.
Block = 3
Page = 0
i = 1
src[i] = 8
dest[i] = 202
NAND_VerifyPage() failed.
Skipping bad block at block number :3:
Attempting to start in block number 0x00000004
Erasing blocks 0x00000004 through 0x00000004.
Writing 512 bytes of data:
Data mismatch! Verification failed.
Block = 4
Page = 0
i = 1
src[i] = 8
dest[i] = 202
NAND_VerifyPage() failed.
Skipping bad block at block number :4:
Attempting to start in block number 0x00000005
Erasing blocks 0x00000005 through 0x00000005.
Writing 512 bytes of data:
Data mismatch! Verification failed.
Block = 5
Page = 0
i = 1
src[i] = 8
dest[i] = 202
NAND_VerifyPage() failed.
Skipping bad block at block number :5:
Warning! Write Failed
: Writing data failed!! Error code = 276942744.

————————————————————————————————————————————

可是,flash读写没有问题

————————————————————————————————————————————

[C64XP_0] 01 Testing NAND Flash...
4096 Blocks
131072 Pages
64 MBytes
Reducing test size to [1024 blocks],[32768 pages],[25 bad pages]
Erasing Flash [0-1024] blocks
Writing Flash [0-32768] pages
Reading Flash [0-32768] pages
Found bad page: 32
Found bad page: 64
Found bad page: 96
Found bad page: 128
Found bad page: 160
Erasing Flash [0-1024] blocks
PASS

***ALL Tests Passed***

————————————————————————————————————————————

这是怎么回事?