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.

RE: With spectrum digital EVM1707+OMAP-L137 UI boards and XDS100v2, How to write Nand flash with CCS6

Other Parts Discussed in Thread: AM1707, OMAP-L137, CCSTUDIO

Hi!, I tried to load SPI flash using serial port.

mono sfh_OMAP-L137.exe -flash -targetType AM1707 ubl_AM1707_SPI_MEM.bin u-boot.bin

after loading, I am getting these messages :

AM1707 initialization passed!
Booting TI User Boot Loader
UBL Version: 1.65
UBL Flashtype: SPI Starting SPI Memory Copy...
No magic number found. Looking for: 0x55424CBB, but read 0xA5DAFBC3.
SPI Memory Boot failed.
Aborting...

Please tell me what is the right spi image I should to put into SPI flash.
Thanks
Anna
  • Hi Anna,


    Please tell me what is the right spi image I should to put into SPI flash.


    Have you Installed OMAPL137 SDK on your host machine & tried to flash pre-built binaries into flash ?

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/368049

    We can follow up your old post here.


    Start CCStudio and connect to the DSP. Once done, connect to the ARM.-----------What does the DSP mean? AM1707 evm is a DSP or ARM? Thanks Anna


    AM1707 -> It has ARM processor alone.
    OMAPL137 -> It has ARM & DSP (DSP is master here ie it wakes up first and it would enable ARM next)


    Is the SW2 setting 11110? I have AM1707 EVM


    For SPI boot:
    0101X
    UARt
    10100
    Emulation or No boot mode:
    11110
  • Thanks Titus,

    I have a AM1707 EVM with AM1707 UI. So I do not have DSP function.
    I have OMAP-L137_flashandbootutils_2_40 and DaVinci-PSP-SDK-03.20.00.014 on my host PC running window.
    And I have another PC running Linux with OMAP-L137_flashandbootutils_2_40 and DaVinci-PSP-SDK-03.20.00.014 too.

    I tried to flash SPI flash with pre-built binaries: ubl_AM1707_SPI_MEM.bin u-boot.bin (from OMAP-L137...), it flashed successful but getting failed messages when boot from SPI:
    No magic number found. Looking for: 0x55424CBB, but read 0xA5DAFBC3.
    SPI Memory Boot failed
  • Have you tried to use the following UBL and u-boot for AM1707 EVM ?

    DaVinci-PSP-SDK-03.20.00.14/images/boot-strap/am17xx/arm-spi-ais.bin
    DaVinci-PSP-SDK-03.20.00.14/images/u-boot/omapl1x7/u-boot.bin
  • Hi Anna,

    anna said:
    mono sfh_OMAP-L137.exe -flash -targetType AM1707  ubl_AM1707_SPI_MEM.bin u-boot.bin [/quote[

    Your heading says that you are trying to flash it to NAND memory, there is an error in your command . The default flash memory selected is SPI and not NAND.

    To specify the NAND, use the command something like below.

    Flash the memory with a UBL and application image - This will place the UBL at address 0x0 and an application image, such as u-boot, at address 0x10000. This is used for the AM1707 device.

    • >mono sfh_OMAP-L137.exe -flashType NAND -flash <UBL binary file> <binary application file>

    Additional options are shown below:

      -targetType         : Specifies exact target type within OMAP-L137 family (OMAPL137_v2 [default], OMAPL137_v1, C6747, or AM1707)
      -flashType          : Specifies exact flash type (default SPI_MEM)
      -p <COM PORT NAME>  : Allows specifying com port other than default 'COM1' or '/dev/ttyS0'.
      -h                  : Show help text.
      -v                  : See verbose output from OMAP-L137.
      -baud <BAUD RATE>   : Allows specifying baud rate other than default (115200)
      -APPStartAddr       : Changes entry point of application (default 0xC1080000)
      -APPLoadAddr        : Changes load address of application (default 0xC1080000)
     

    Once any command is run, the "Waiting for BOOTME..." prompt shows. Power cycle the board or press the reset button to continue.

    For more info please visit: http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137

     

     Alternate option:

    If you want to use the NAND writer from CCS, please visit :

    http://processors.wiki.ti.com/index.php/GSG:_Building_Software_Components_for_OMAP-L1/AM1x#Rebuilding_the_NAND_Flash_writer

     

    Regards,

    Shankari

     

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

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