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.

omap-l138 nor flash failed

Other Parts Discussed in Thread: OMAP-L138

你好,

我在OMAP-L138单板上使用Winbond公司的并行NOR FLASH,型号W29GL256SH9C(1.8V EMIFA总线),现在通过串口烧写工具sfh_omap-l138.exe擦除和烧写失败,打印如下:

擦除命令:

sfh_OMAP-L138.exe  -p com5 -flashtype NOR -erase

pause

(AIS Parse): Read magic word 0x41504954.
(AIS Parse): Waiting for BOOTME... (power on or reset target
(AIS Parse): BOOTME received!
(AIS Parse): Performing Start-Word Sync...
(AIS Parse): Performing Ping Opcode Sync...
(AIS Parse): Processing command 0: 0x58535901.
(AIS Parse): Performing Opcode Sync...
(AIS Parse): Loading section...
(AIS Parse): Loaded 10940-Byte section to address 0x80000000.
(AIS Parse): Processing command 1: 0x58535901.
(AIS Parse): Performing Opcode Sync...
(AIS Parse): Loading section...
(AIS Parse): Loaded 1092-Byte section to address 0x80002ABC.
(AIS Parse): Processing command 2: 0x58535906.
(AIS Parse): Performing Opcode Sync...
(AIS Parse): Performing jump and close...
(AIS Parse): AIS complete. Jump to address 0x80000000.
(AIS Parse): Waiting for DONE...
(AIS Parse): Boot completed successfully.

Waiting for SFT on the OMAP-L138...(停在这里)

因为我在单板上还有一个MCP,型号为MT29C2G24MAA (NAND+MDDR),使用下列擦除命令和烧写命令都正常的。

擦除命令:

sfh_OMAP-L138.exe  -p com5 -flashtype NAND -erase

pause

请问,要想烧写并行NOR FLASH,我需要修改

Flash and Boot Utils Package里面的代码吗?谢谢!

  • 执行SFT时会检查一下DDR写,读校验,如果校验不对,就出现上面的错误信息。要改一下device.c里的DDR参数,具体请参考下面的wiki网站。
     http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L138#Modifications_for_Custom_Boards

  • 你好,

    我单板上有SPI FLASH,NOR FLASH,NAND FLASH,其中SPI和NAND都是可以烧写的。就只有NOR FLASH不能烧写。应该不是DDR参数的问题吧。

    Winbond公司的并行NOR FLASH,型号W29GL256SH9C,要想使用sfh_OMAP-L138.exe烧写NOR FLASH,需要重新改Serial_Boot_and_Flash_Loading_Utility里面的代码吗?

    我仿真器接口也有,是否可以通过仿真器试试?

    谢谢!

  • jtag口烧写程序在下面的路径下OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\CCS\NORWriter 。

  • 你好,

    如果用sfh_OMAP-L138.exe烧写的话,需要修改哪些地方?刚才发给我的连接 http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L138#Modifications_for_Custom_Boards

    里面没有NOR FLASH相关的,我硬件电路是按照http://processors.wiki.ti.com/index.php/Connecting_NOR_Flash_to_OMAP-L138来接的。

    谢谢!

  • 异步memory的设置在OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\Common\src\device_async_mem.c和OMAP-L138/Common/include/device_async_mem.h里。

  • 你好,

    我利用nor-flash-writer-03.20.00.14工程,使用仿真器烧写NOR FLASH失败,NOR FLASH型号:W29GL256SH9C(华邦电子),打印如下:

    Starting OMAP-L138 NORWriter.
    CFI Query...passed.
    NOR Initialization:
    Command Set: Unknown(停在这里了)

    有什么好的建议?谢谢!

  • 看了一下norwriter源码,不支持winbond flash。

    // Supported Flash Manufacturers
    typedef enum _NOR_MANF_ID_
    {
    UNKNOWN_ID = 0x00,
    AMD = 0x01,
    FUJITSU = 0x04,
    INTEL = 0x89,
    MICRON = 0x2C,
    SAMSUNG = 0xEC,
    SHARP = 0xB0
    }
    NOR_ManfID;

     那要自己写烧写代码了。