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.

Flash u-bootais file to my custom omapl138 board problem

Other Parts Discussed in Thread: OMAPL138, OMAP-L138

Hi everyone,

      I have struggled about one month to flash u-bootais.bin into my custom omapl138 board Nor flash. My custom board have DDR2 flash and Nor flash. And i use CCS Nor writer to flash and serial flash sfh_OMAP-L138.exe , but both failed. Who have any idea please share with me .Thanks

Here is the detail:

1. Use the CCS Nor Writer to load the uboot to the Nor flash. I use the gel file OMAP-L138_LCDK.gel and confirm the system clk is 300Mhz and DDR2 clk is 150Mhz.The simulator is XD200. Then i use the CCS to open th Nor Writer prj and run the program, but i get below error:

*********************************************************
[ARM9_0] Starting OMAP-L138 NORWriter.
CFI Query...passed.
NOR Initialization:
 Command Set: AMD
 Manufacturer: INTEL
 Size: 0x40 MB
Enter the binary AIS application file name (enter 'none' to skip):
C:\Users\yq1003\DATA\DSP\Code\u-bootais.bin
 INFO: File read complete.
Erasing the NOR Flash
Address out of range ERROR: Erasing NOR failed.
 NOR flashing failed!
********************************************************

2. After using Nor writer failed many times and i try to use the sfh_OMAP-L138 to flash the Nor flash. First i download the OMAP-L138_FlashAndBootUtils_2_40 and change the DEVICE_UART_PERIPHNUM to 1 ( for i use Uart1), change the Uint32 DEVICE_ExternalMemInit() 5 DDR setting, (for my external clk is 25MHz) change the DEVICE_PLL0Init() and DEVICE_PLL1Init. Then i copy the folder OMAP-L138_FlashAndBootUtils_2_40 to my virtual Ubuntu system. In Ubuntu , go to the  \OMAP-L138\GNU , then input "make" and "enter" to build this file. After that i get a new sfh_OMAP-L138.exe. When i use the sfh_OMAP-L138.exe to flash the board, the process stoped at: " Waiting for SFT on the OMAP-L138..."

Any idea please share with me . Thanks

 

  • Hi,

    Method 2)
    If we see any "SFT hang" issue then it could be DDR initialization issues.
    Please ensure that you have updated DDR timings in correct area.
    Which "targetType" you have mentioned say, OMAPL138 or OMAPL138_LCDK etc., ?

    FYI: UART change seems to be good since you are getting "BOOTME" message.

    Method 1)
    You have to debug the code, why NOR flash initialization got failed ?
    Check the "base address" of NOR flash in "norwriter.c" file.