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.

dm8168 uboot verify error



大家好!我在烧写uboot时遇到了校验错误,信息如下:

[CortexA8] Welcome to CCS Nand Flash Utility

[CortexA8]

[CortexA8]

[CortexA8] Choose your operation

[CortexA8] Enter 1 ---> To Flash an Image

[CortexA8] Enter 2 ---> To ERASE the whole NAND

[CortexA8] Enter 3 ---> To EXIT

1

[CortexA8] Enter image file path

e:\whx\uboot_NAND_DM816X_DVR

[CortexA8] Enter offset (in hex):

0

[CortexA8] Choose the ECC scheme from given options :

[CortexA8] Enter 1 ---> BCH 8-bit

[CortexA8] Enter 2 ---> HAM  

[CortexA8] Enter 3 ---> T0 EXIT

[CortexA8] Please enter ECC scheme type :

1

[CortexA8] Starting NETRA NAND writer

[CortexA8]

[CortexA8] ----------------------

[CortexA8]   NAND FLASH DETAILS

[CortexA8] ----------------------

[CortexA8]  Device ID : 0xda

[CortexA8]  Manufacture ID : 0xec

[CortexA8]  Page Size : 2048 Bytes

[CortexA8]  Spare Size : 64 Bytes

[CortexA8]  Pages_Per_Block : 64

[CortexA8]  Number_of_Blocks : 2048

[CortexA8]  Device_width : 1 Byte

[CortexA8]  DeviceSize : 256 MB

[CortexA8]

[CortexA8]  Setting the ECC scheme

[CortexA8]   Set the BCH 8 bit ECC scheme  .... done

[CortexA8] Preparing to Flash image ....

[CortexA8] Opening image ... done.

[CortexA8] Erasing Required Blocks [start = 0, count = 2]...[CortexA8] Done

[CortexA8] Flashing image ...

[CortexA8] Number of blocks needed for header and data: 0x2

[CortexA8] Attempting to start write in block number 0x0.

[CortexA8] Writing image data to Block 0 Page0x0

[CortexA8] Verify failed. Attempting to clear page

[CortexA8] Attempting to start write in block number 0x1.

[CortexA8] Writing image data to Block 1 Page0x0

[CortexA8] Verify failed. Attempting to clear page

[CortexA8] Attempting to start write in block number 0x2.

[CortexA8] Writing image data to Block 2 Page0x0

[CortexA8] Verify failed. Attempting to clear page

平台信息如下:

Platform: dm8168 ccs5.2

Emulator: xds100v2

Flash: k9f2g08u0m

File: nand-flash-writer.out

Uboot file: uboot_NAND_DM816X_DVR

Nand flash details是正确的,dm8168的datasheet中支持device ID=0xda的设备。但我不能确定k9f2g08u0m是否支持BCH 8bit,datasheet中只有这一句:

ECC : Error Correcting Code --> Hamming Code etc.

 Example) 1bit correction & 2bit detection

我试过ECC选择2(HAM,好像不支持), 烧写时不报错,但重新上电后平台无法启动,串口没有任何打印信息。我在e2e上看到了同样的问题,但没有好的解决方法。请大家给点建议,谢谢!