ICETEK-OMAPL138-KB自带程序测试问题

一、 用SEED-DEC138测试程序

"E:\OMAPL\cccshiyan\02.Test Demos under CCS\tests\nand\ccs\test_nand.pjt"

调试ICETEK-OMAPL138-KB开发板,运行.out文件后出现以下问题:

------------------------------------------------------------

                    OMAP-L138 NAND Test

Test Description

----------------

This code will configure the EMIFA tointerface with NAND

flash on the UI board. Once configured, thecode will read 

and write a block of NAND.

------------------------------------------------------------

 

Initialize the Required BSL Modules

-----------------------------------

 

dev_id[0]: 0xEC

dev_id[1]: 0xD3

dev_id[2]: 0x51

dev_id[3]: 0x95

dev_id[4]: 0x58

nand device id error:        1

error initializing nand: 2

 

********** OMAP-L138 TEST FAILED **********

原因不明:

 

 

 

 

 

 

用自带程序调试结果如下:

------------------------------------------------------------

                    OMAP-L138 NAND Test

Test Description

----------------

This code will configure the EMIFA tointerface with NAND

flash on the UI board. Once configured, thecode will read 

and write a block of NAND.

------------------------------------------------------------

Initialize the Required BSL Modules

-----------------------------------

 

dev_id[0]: 0xEC

dev_id[1]: 0xD3

dev_id[2]: 0x51

dev_id[3]: 0x95

dev_id[4]: 0x58

 

Execute Test

------------ 

--- check bad block ---

         block:1024 good

 

--- read/print a chunk of nand flash ---

 

 

Print Data

----------

address    00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

 

00000000   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000010    10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E1F

00000020   20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F

………………………………………………………………

000007D1   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

000007E1   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

000007F1   FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

         nandflash read passed

 

--- erase a block of nand flash ---

         nandflash erase passed

 

--- write a page of nand flash ---

Print Data

----------

address    00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

 

00000400   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000410   10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F

………………………………………………………………

00000BE0   E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF

00000BF0   F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF

         nandflash write passed

 

********** OMAP-L138 TESTPASSED **********

 

问题:为什么NAND FLASH出厂时会有坏块呢?

答:http://blog.csdn.net/lqrensn/article/details/5882038

http://blog.chinaunix.net/uid-22597935-id-1772446.html

 

 

 

二、擦除nand flash

利用ccs3.3

进入ARM9_0烧写

烧写提示为:

第一步:烧写ubl

Starting DA8xx_NANDWriter.

DA8XX/OMAP-L1XX part detected. Its an ARMboot device

         Yourequire two images to boot this device

         1)ARM UBL in AIS file format.

         2)U-Boot image in raw binary format

To generate the AIS format file, you needto run the ARM/DSP .out (COFF) file generated from CCS build through the AISGentool.

Enter the image type (one of"armais" "uboot" "other")

armais

Enter the file Name

E:\pro\evmomapl138_v1\ubl_OMAPL138_NAND.bin

Number of blocks needed for data: 0x1

Attempting to start write in block number0x1.

Unprotecting blocks 0x1 through 0x1.

Erasing block 0x1 through 0x1.

Writing image data to Block 0x1, Page 0x0

Writing image data to Block 0x1, Page 0x1

Writing image data to Block 0x1, Page 0x2

Writing image data to Block 0x1, Page 0x3

Writing image data to Block 0x1, Page 0x4

Writing image data to Block 0x1, Page 0x5

Writing image data to Block 0x1, Page 0x6

Writing image data to Block 0x1, Page 0x7

Protecting the entire NAND flash.

 

 

NAND boot preparation was successful!

 

第二步:烧写uboot

Starting DA8xx_NANDWriter.

DA8XX/OMAP-L1XX part detected. Its an ARMboot device

         Yourequire two images to boot this device

         1)ARM UBL in AIS file format.

         2)U-Boot image in raw binary format

To generate the AIS format file, you needto run the ARM/DSP .out (COFF) file generated from CCS build through the AISGentool.

Enter the image type (one of"armais" "uboot" "other")

uboot

Enter the file Name

E:\pro\evmomapl138_v1\u-boot.bin

Number of blocks needed for data: 0x2

Attempting to start write in block number0x2.

Unprotecting blocks 0x2 through 0x3.

Erasing block 0x2 through 0x3.

Writing image data to Block 0x2, Page 0x1

Writing image data to Block 0x2, Page 0x2

Writing image data to Block 0x2, Page 0x3

Writing image data to Block 0x2, Page 0x4

Writing image data to Block 0x2, Page 0x5

Writing image data to Block 0x2, Page 0x6

Writing image data to Block 0x2, Page 0x7

Writing image data to Block 0x2, Page 0x8

Writing image data to Block 0x2, Page 0x9

Writing image data to Block 0x2, Page 0xA

Writing image data to Block 0x2, Page 0xB

Writing image data to Block 0x2, Page 0xC

Writing image data to Block 0x2, Page 0xD

Writing image data to Block 0x2, Page 0xE

Writing image data to Block 0x2, Page 0xF

Writing image data to Block 0x2, Page 0x10

Writing image data to Block 0x2, Page 0x11

Writing image data to Block 0x2, Page 0x12

Writing image data to Block 0x2, Page 0x13

Writing image data to Block 0x2, Page 0x14

Writing image data to Block 0x2, Page 0x15

Writing image data to Block 0x2, Page 0x16

Writing image data to Block 0x2, Page 0x17

Writing image data to Block 0x2, Page 0x18

Writing image data to Block 0x2, Page 0x19

Writing image data to Block 0x2, Page 0x1A

Writing image data to Block 0x2, Page 0x1B

Writing image data to Block 0x2, Page 0x1C

Writing image data to Block 0x2, Page 0x1D

Writing image data to Block 0x2, Page 0x1E

Writing image data to Block 0x2, Page 0x1F

Writing image data to Block 0x2, Page 0x20

Writing image data to Block 0x2, Page 0x21

Writing image data to Block 0x2, Page 0x22

Writing image data to Block 0x2, Page 0x23

Writing image data to Block 0x2, Page 0x24

Writing image data to Block 0x2, Page 0x25

Writing image data to Block 0x2, Page 0x26

Writing image data to Block 0x2, Page 0x27

Writing image data to Block 0x2, Page 0x28

Writing image data to Block 0x2, Page 0x29

Writing image data to Block 0x2, Page 0x2A

Writing image data to Block 0x2, Page 0x2B

Writing image data to Block 0x2, Page 0x2C

Writing image data to Block 0x2, Page 0x2D

Writing image data to Block 0x2, Page 0x2E

Writing image data to Block 0x2, Page 0x2F

Writing image data to Block 0x2, Page 0x30

Writing image data to Block 0x2, Page 0x31

Writing image data to Block 0x2, Page 0x32

Writing image data to Block 0x2, Page 0x33

Writing image data to Block 0x2, Page 0x34

Writing image data to Block 0x2, Page 0x35

Writing image data to Block 0x2, Page 0x36

Writing image data to Block 0x2, Page 0x37

Writing image data to Block 0x2, Page 0x38

Writing image data to Block 0x2, Page 0x39

Writing image data to Block 0x2, Page 0x3A

Writing image data to Block 0x2, Page 0x3B

Writing image data to Block 0x2, Page 0x3C

Writing image data to Block 0x2, Page 0x3D

Writing image data to Block 0x2, Page 0x3E

Writing image data to Block 0x2, Page 0x3F

Writing image data to Block 0x3, Page 0x0

Writing image data to Block 0x3, Page 0x1

Writing image data to Block 0x3, Page 0x2

Writing image data to Block 0x3, Page 0x3

Writing image data to Block 0x3, Page 0x4

Writing image data to Block 0x3, Page 0x5

Writing image data to Block 0x3, Page 0x6

Writing image data to Block 0x3, Page 0x7

Writing image data to Block 0x3, Page 0x8

Writing image data to Block 0x3, Page 0x9

Writing image data to Block 0x3, Page 0xA

Writing image data to Block 0x3, Page 0xB

Writing image data to Block 0x3, Page 0xC

Writing image data to Block 0x3, Page 0xD

Writing image data to Block 0x3, Page 0xE

Writing image data to Block 0x3, Page 0xF

Writing image data to Block 0x3, Page 0x10

Writing image data to Block 0x3, Page 0x11

Writing image data to Block 0x3, Page 0x12

Writing image data to Block 0x3, Page 0x13

Writing image data to Block 0x3, Page 0x14

Writing image data to Block 0x3, Page 0x15

Writing image data to Block 0x3, Page 0x16

Writing image data to Block 0x3, Page 0x17

Writing image data to Block 0x3, Page 0x18

Writing image data to Block 0x3, Page 0x19

Writing image data to Block 0x3, Page 0x1A

Writing image data to Block 0x3, Page 0x1B

Writing image data to Block 0x3, Page 0x1C

Writing image data to Block 0x3, Page 0x1D

Writing image data to Block 0x3, Page 0x1E

Writing image data to Block 0x3, Page 0x1F

Writing image data to Block 0x3, Page 0x20

Writing image data to Block 0x3, Page 0x21

Writing image data to Block 0x3, Page 0x22

Writing image data to Block 0x3, Page 0x23

Writing image data to Block 0x3, Page 0x24

Writing image data to Block 0x3, Page 0x25

Writing image data to Block 0x3, Page 0x26

Writing image data to Block 0x3, Page 0x27

Writing image data to Block 0x3, Page 0x28

Writing image data to Block 0x3, Page 0x29

Writing image data to Block 0x3, Page 0x2A

Writing image data to Block 0x3, Page 0x2B

Protecting the entire NAND flash.

 

 

NAND boot preparation was successful!

你可能感兴趣的:(ICETEK-OMAPL138-KB自带程序测试问题)