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.

SPI1 Flash in AM1808

Other Parts Discussed in Thread: OMAP-L138, AM1808

Hello,

I am new to flashing of ARM devices and I want to flash my demo code in SPI1 flash. I have .bin file available with me. I don't want U-boot or UBL. I tried using "sfh_OMAP-L138.exe -targetType AM1808 -flash_noubl uart_test-ais" but got the following error. 

-----------------------------------------------------
TI Serial Flasher Host Program for OMAP-L138
(C) 2010, Texas Instruments, Inc.
Ver. 1.67
-----------------------------------------------------


Platform is Windows.
[TYPE] Single boot image
[BOOT IMAGE] uart_test-ais
[TARGET] AM1808
[DEVICE] SPI_MEM

Attempting to connect to device COM1...
Press any key to end this program at any time.

(AIS Parse): Read magic word 0x41504954.
(AIS Parse): Waiting for BOOTME... (power on or reset target now)
(Serial Port): Read error! (The operation has timed out.)
(Serial Port): Read error! (The operation has timed out.)

I followed the following steps:
1) Set the boot pins to UART2 boot mode.
2) Connect a serial cable from the host computer to the OMAP-L138 EVM
3) Open a command prompt on the host computer and change directory to where the SFH executable is located.
4) Run the flashing utility with this command:
 ..\OMAP-L138\gnu\sfh_OMAP-L138.exe [options]
5) Turn on the board When instructed.
  • I was successful to some extend but now receiving the output


    C:\Documents and Settings\admin>sfh_OMAP-L138.exe -targetType AM1808 -appStartAd
    dr 0x0 -appLoadAddr 0x0 -flash_noubl uart-boot-ais
    -----------------------------------------------------
    TI Serial Flasher Host Program for OMAP-L138
    (C) 2010, Texas Instruments, Inc.
    Ver. 1.67
    -----------------------------------------------------


    Platform is Windows.
    [TYPE] Single boot image
    [BOOT IMAGE] uart-boot-ais
    [TARGET] AM1808
    [DEVICE] SPI_MEM

    Attempting to connect to device COM1...
    Press any key to end this program at any time.

    (AIS Parse): Read magic word 0x41504954.
    (AIS Parse): Waiting for BOOTME... (power on or reset target now)
    (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 8648-Byte section to address 0x80000000.
    (AIS Parse): Processing command 1: 0x58535901.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Loading section...
    (AIS Parse): Loaded 776-Byte section to address 0x800021C8.
    (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...
    File uart-boot-ais is not present.


    Interfacing to the OMAP-L138 via UART failed.
    Please reset or power-cycle the board and try again...

    C:\Documents and Settings\admin>
    
    
    
    
    The binary file just contain the bin form(generated using AIS ) of  UART test code. Is u-boot necessary for it?
  • Are you sure the referenced file is there in the local directory? Is it called uart-boot-ais? or maybe you meant uart-boot.ais

    Regards, Daniel

  • Daniel,

    Yes the file "uart-boot-ais" is in local directory only. 

  • The problem got resolved by following steps in 

    http://processors.wiki.ti.com/index.php/Quick_Start_Guide_StarterWare_01.00.XX.XX_(supports_AM1808)

    but it worked for SPI flash only. When I tried the same on NAND (changing -flashTarget to NAND) it didn't responded as expected.

    Is there any other way to flash NAND?