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.

NOR Write Failure but Erase can work (TI816x EVM)

Hi,

I'm using the TI816x EVM, and trying to flash the NOR located in the daughter board of the EVM. I followed the guide here:

http://processors.wiki.ti.com/index.php/DM816x_AM389x_PSP_Flashing_Tools_Guide

and flash using CCSv5 and XDS100v2, after solving most of the problems such as: like wrong CCS version, wrong path location, no source available and etc, I manage to run the GEL file script doall, then Load the norflash-writer.out, and step into the code, however, the writing process failed, below the the message I obtained from the Console:

==============================================

[CortexA8] Starting TI816x NOR Flash Writer.
[CortexA8] CFI Query...passed.
[CortexA8] NOR Initialization:
[CortexA8]     Command Set: AMD
[CortexA8]     Manufacturer: AMD
[CortexA8]     Size: 0x40 MB
[CortexA8] Enter the File Name
/home/junrong/ti-ezsdk_dm816x-evm_5_01_01_80/psp/prebuilt-images/u-boot-dm816x-evm-2010.06-psp04.00.00.10-r1.bin
[CortexA8] Enter the Offset in bytes (decimal)
0
[CortexA8] Erase Options:
[CortexA8] ---------------
[CortexA8]           0 -> Erase Only Required Region
[CortexA8]           1 -> Erase Whole Flash
[CortexA8] Enter Erase Option:
1
[CortexA8] Reading 179256 bytes from file...[CortexA8] Done.
[CortexA8] Erasing the NOR Flash
[CortexA8] Erased through 0x8020000
[CortexA8] Erased through 0x8040000
[CortexA8] Erased through 0x8060000
-

-

-

-

-


[CortexA8] Erased through 0xBFC0000
[CortexA8] Erased through 0xBFE0000
[CortexA8] Erased through 0xC000000
[CortexA8] Erase Completed
[CortexA8] Writing 179256 bytes to NOR...
[CortexA8] Timeout ocurred @ 0x800103e.
[CortexA8]
[CortexA8] Buffered write failed @ address 0x8001000
[CortexA8] Trying normal write
[CortexA8] Failed flashing @ 0x8001002
[CortexA8]
[CortexA8] Normal write also failed
[CortexA8] NOR Write Failed...Aborting!
[CortexA8]     ERROR: Writing NOR failed.
[CortexA8]     NOR flashing failed!

==============================================

As shown above, the erase operation can be completed, which means there is no problem with the connection and settings of CCS and XDS, so how can I solve this failure in writing?

Thanks for any help!

by

JR Tan

  • I realized that I got the wrong u-boot.bin from the psp/prebuilt-images/ folder, so I recompile u-boot for NOR following:

    http://processors.wiki.ti.com/index.php/DM816x_AM389x_PSP_U-Boot#U-Boot_for_NOR_boot

    However, I'm still stuck at the writing process,

    The Console shows:

    ==================

    [CortexA8] Starting TI816x NOR Flash Writer.
    [CortexA8] CFI Query...passed.
    [CortexA8] NOR Initialization:
    [CortexA8]     Command Set: AMD
    [CortexA8]     Manufacturer: AMD
    [CortexA8]     Size: 0x40 MB
    [CortexA8] Enter the File Name
    /home/junrong/ti-ezsdk_dm816x-evm_5_01_01_80/psp/u-boot-2010.06-psp04.00.00.10/u-boot.bin
    [CortexA8] Enter the Offset in bytes (decimal)
    0
    [CortexA8] Erase Options:
    [CortexA8] ---------------
    [CortexA8]           0 -> Erase Only Required Region
    [CortexA8]           1 -> Erase Whole Flash
    [CortexA8] Enter Erase Option:
    0
    [CortexA8] Reading 148444 bytes from file...[CortexA8] Done.
    [CortexA8] Erasing the NOR Flash
    [CortexA8] Erased through 0x8020000
    [CortexA8] Erased through 0x8040000
    [CortexA8] Erase Completed
    [CortexA8] Writing 148444 bytes to NOR...

     ==================

    and it is stuck there for an hour, and nothing happens.

    Can anyone help?

    Thanks,

    JR Tan

  • Hello TI E2E Community,

    Any idea to resolve on above issues?

    Pls help to advise or give suggestion.

    Thanks.