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 UART boot and flashing NOR

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Hello,

Now I'm trying to boot OMAP-L138 via UART and writing bootloader to NOR flash

 with "sfh_OMAP-L138.exe" serial flasher host program on the Windows.

OMAP-L138 is set the UART boot mode with BTMODE pins and can request "BOOTME",

but the messages shown from the flasher are as below and the work is fail.

If any problems, please inform me.

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

>sfh_OMAP-L138 -flash_noubl -flashType NOR ais_to_uboot.bin
-----------------------------------------------------
   TI Serial Flasher Host Program for OMAP-L138
   (C) 2011, Texas Instruments, Inc.
   Ver. 1.67
-----------------------------------------------------


Platform is Windows.
      [TYPE] Single boot image
[BOOT IMAGE] ais_to_uboot.bin
    [TARGET] OMAPL138
    [DEVICE] NOR

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): Boot aborted.
Booting SFT failed. Trying again (you may need to reset the target)...
-------------------

 

By the way, when the OMAP-L138's starting up, 

UART shows "BOOTME BOOTME" which means "BOOTME" requests

2 times immediately.

Is this correct ?

(OMAP-L138's reset pin is controlled by the external PLD device)

 

Best regards.

Kenji

  • Check pinmux setting on UARTx of AISGen (or HexAIS..., depend on the configuration program you use), it's possible the wrong setting so after the configuration executed by ROMUBL, UART communication lost.

  • Hi Kenji

     

    In OMAP-L138 the NOR flash is present in the Daughter card please check if the daughter card is connected.

    Best Regards
    Prabhakar

  • Hello CalvinTai,

    Thank you for your reply.

    I've confirmed that pinmux setting is correct,

    and can communicate on UART.

  • Hello Prabhakar,

    Thank you for your reply.

    Sorry for my poor information,

    my testing board is not the EVM but our designed board and has NOR flash.

    And I have additional informations as below.

    1)"BOOTME requests 2 times" is as the workaround of the Errata Advisory 2.0.20 "Intermittent Boot Failures".

    2)After tuned "sfh_OMAP-L138.exe" for above item 1,  I've gotten the message from exe as below.

    ----------

    (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...
    ----------

    But still waiting, I want to know what is the additional operation...

    Best Regards.

    Kenji

  • HI Kenji ,

    why dont you try with -flash option using the ubl and u-boot.bin.

    Regards
    Prabhakar

  • Hi Kenji,

    do you get the same issue if you try to erase the NOR flash "SFT failed. Trying again (you may need to reset the target)..."

    Best Regards.
    Prabhakar

     

  • Hello Prabhakar,

    Thank you for your lots of advices.

    I've found that the informations from NOR flash are unstable when trying to erase according to your advice,

    and found this is caused by our design mistake on EMIF.

    Now resolved and works well.

     

    Thanks a lot.

    Kenji

  • Hi Kenji,

    We are building a custom hardware with NOR flash as well.

    I have a Logic PD eXperimenter Kit using SPI flash. I have been using serial flasher provided by TI to write UBL and U-boot to the SPI flash on eXperimenter Kit.

    From TI's document, it does not seem to me that the serial flasher is able to support NOR flash as well. Thus, we are exploring the second alternative which is using nor flash writer.

    http://processors.wiki.ti.com/index.php/GSG:_OMAP-L138_DVEVM_Additional_Procedures#Flashing_images_to_NOR_Flash

    But, from your post, it seems that you are able to use serial flasher for NOR flash as well. I am interested to know what is needed to be done to get serial flasher working for NOR flash as well.

    rgds,

    kc Wong

  • hi The Logic PD kit contains  only support for SPI flash, if along with it you have the daughter card which has the NOR flash in it then the serial flasher will work for NOR flash as well.

    Best Regards
    Prabhakar Lad

  • Hello KC,

    My testing board is not EVM but our custom board, and it has NOR flash device.

    And then I use sfh NOR flash writer included in PSP package.

    I can write the programs to the NOR flash with no changes for sfh writer,

    but as the note, OMAP-L138 on the board is needed to boot as UART boot,

    so you need to set BTMODE pins as UART boot with your designed configuration.

     

    Best regards.

    Kenji

  • Hi Kenji,

    Thanks for replying. That's good news.

    I hope the sfh writer can be used without modification on our custom board as well.

    rgds,

    kc Wong