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.

spi flash write

Other Parts Discussed in Thread: OMAP-L137, OMAP-L138, OMAPL138

Hi

I used omapl137evm spectrum digital. there is "W25Q32" spi flash on this board. 

I used OMAP-L137_FlashAndBootUtils_2_40 for wrote on the spi flash. i set the boot pins to UART2 boot mode. i used this command on Command Prompt :

1 ) OMAP-L137_FlashAndBootUtils_2_40\OMAP-L137\GNU\sfh_OMAP-L137.exe -erase

2 ) OMAP-L137_FlashAndBootUtils_2_40\OMAP-L137\GNU\sfh_OMAP-L137.exe -flash_dsp C:\OMAPL137_dsp_1_00_00_11\REL_LSP_02_20_00_07\PSP_02_20_00_07\bin\dsp-spi-ais.bin C:\OMAPL137_dsp_1_00_00_11\REL_LSP_02_20_00_07\PSP_02_20_00_07\bin\ubl-spi.bin C:\OMAPL137_dsp_1_00_00_11\REL_LSP_02_20_00_07\PSP_02_20_00_07\bin\u-boot.bin

write on spi flash is complete. but when changed bootmode to the spi flash, don't see any thing in minicom. 

I think that this writer used for "W25X16, W25X32, W25X64" spi flash. 

Can i used this writer for W25Q32 spi flash?

  • Hi Mahdi,

    Surely It should work,

    I presume that you are using OMAPL137 EVM board and you are trying to flash pre-built binaries on OMAPL137 EVM through SFH tool.

    Are you using pre-built binary or your own compiled one ?

    Try the below command to flash binaries in SPI flash.

    OMAP-L137_FlashAndBootUtils_2_40\OMAP-L137\GNU\sfh_OMAP-L137.exe -spiflash_dsp C:\OMAPL137_dsp_1_00_00_11\REL_LSP_02_20_00_07\PSP_02_20_00_07\bin\dsp-spi-ais.bin C:\OMAPL137_dsp_1_00_00_11\REL_LSP_02_20_00_07\PSP_02_20_00_07\bin\ubl-spi.bin C:\OMAPL137_dsp_1_00_00_11\REL_LSP_02_20_00_07\PSP_02_20_00_07\bin\u-boot.bin

  • Hi Mahdi,

    How do you confirm that the write on spi flash is complete? Would you please post the screenshot of it once the flash is complete!.

    If flashing has some issues, the following are the suggestions.

    The arguments passed to the sfh_OMAP-L137.exe may not be sufficient. You may have to give the port number and target type.

    To specify the flash type, use the argument '-flashType' <type of flash> i.e, The default flash type is SPI

    For example:

    $>sfh_OMAP-L138.exe -flash boot.ais rasterDisplay.bin -targetType OMAPL138_LCDK -flashType NAND -p COM3

    Where 3 is the COM port number

    For more info please refer to

    http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137

    And also, check whether the serial port settings of minicom is done correctly, 115200, 8N1.

     

    Regards,

    Shankari

     

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

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Hi Titusrathinaraj

    Thanks for your Reply

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    1) yes,i used pre-built binary file in below address:

    C:\OMAPL137_dsp_1_00_00_11\REL_LSP_02_20_00_07\PSP_02_20_00_07\bin\dsp-spi-ais.bin
    C:\OMAPL137_dsp_1_00_00_11\REL_LSP_02_20_00_07\PSP_02_20_00_07\bin\ubl-spi.bin

    I used omapl137evm revg from spectrum digital. there is "W25Q32" spi flash on this board. i get uboot from below address because pre-built uboot not support my spiflash:

    support.spectrumdigital.com/.../revg

    when i used spiflash_writer_dsp.pjt with pre-built binary file, every thing is ok. i get this writer from below address :

    support.spectrumdigital.com/.../revg

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    2) OMAP-L137_FlashAndBootUtils_2_40 not support -spiflash_dsp. i get error with this command. but supported -flash_dsp.

    Regards,

    Mahdi

  • Hi Shankari

    Thanks for your reply

    write on spi flash is complete. but when changed bootmode to the spi flash, don't see any thing in minicom.

    i haven't any error with OMAP-L137_FlashAndBootUtils_2_40 writer.

    i used pre-built binary file in below address:

    C:\OMAPL137_dsp_1_00_00_11\REL_LSP_02_20_00_07\PSP_02_20_00_07\bin\dsp-spi-ais.bin
    C:\OMAPL137_dsp_1_00_00_11\REL_LSP_02_20_00_07\PSP_02_20_00_07\bin\ubl-spi.bin

    I used omapl137evm revg from spectrum digital. there is "W25Q32" spi flash on this board. i get uboot from below address because pre-built uboot not support my spiflash:

    http://support.spectrumdigital.com/boards/evmomapl137/revg/

    when i used spiflash_writer_dsp.pjt with pre-built binary file, every thing is ok. i get this writer from below address :

    http://support.spectrumdigital.com/boards/evmomapl137/revg/

    Regards,

    Mahdi

  • Hi Mahdi,
    After flashing binaries, try to press RESET button and see you got any prints on console.

    Still if you are not able make it work, I would like you to create a new post for your problem.