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.

Load program Error. Load Failed for Omap-L138 LCDK

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

I compiled the IPC starterware code for  the ARM and DSP.  I can load and run the DSP code on the LCDK without a problem.  When I try to load the ARM code on the board I get a Load Program Error.  File: ...IPC_ARM.out:  Load Failed.  Iam using CCS5.5 with DSP BIOS 5_42_01_09.  The rest of the error message is as follows:

ARM9_0: Output: Memory Map Cleared.

ARM9_0: Output: ---------------------------------------------

ARM9_0: Output: Memory Map Setup Complete.

ARM9_0: Output: ---------------------------------------------

ARM9_0: GEL: Error while executing OnTargetConnect(): Page fault occurred reading 0x01C10800 at (*((unsigned int *) ((0x01C10000+0x800)+(4*LPSC_num)))&0x1F) [EVMOMAPL138_ARM.gel:939] at PSC0_LPSC_enable(0, 0) [EVMOMAPL138_ARM.gel:543] at PSC_All_On_Full_EVM() [EVMOMAPL138_ARM.gel:251] at OnTargetConnect() .

ARM9_0: Trouble Writing Memory Block at 0x80018000 on Page 0 of Length 0x2f88

ARM9_0: Unable to terminate memory download: NULL buffer pointer at 0x320

ARM9_0: GEL: File: C:\Users\x_dvogel.CORE\DAIRCM_II_sensor_omap\IPC_ARM\Debug\IPC_ARM.out: Load failed.

I am using a USB-560m ermulator to load the code. 


  • ARM9_0: Output: ---------------------------------------------

    ARM9_0: GEL: Error while executing OnTargetConnect(): Page fault occurred reading 0x01C10800 at (*((unsigned int *) ((0x01C10000+0x800)+(4*LPSC_num)))&0x1F) [EVMOMAPL138_ARM.gel:939] at PSC0_LPSC_enable(0, 0) [EVMOMAPL138_ARM.gel:543] at PSC_All_On_Full_EVM() [EVMOMAPL138_ARM.gel:251] at OnTargetConnect() .

    This issue is from gel file.
    Can you please post the log when you run the DSP code ?
    You might get the same gel file problem when you run the DSP code.
    Did you connect the ARM core first then DSP core for running DSP app ?

    It seems you are using XDS100v2 emualtor ?
    If so, please enable the adaptive clock with 1MHz frequency in target configuration.
  • Hi Dieter,

    The following are the steps to run the IPC examples of Starterware. Try it out and let me know how it goes for you.

    Make sure you follow this:-

    =========================

    Set up for OMAP-L138 EVM development:

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

    ARM side debug messages are printed via serial console so the UART port of the

    EVM needs to be connected to the PC running a serial console application. The

    DSP side messages are printed to the CCS console I/O (CIO). You can modify the

    app so that both messages can be printed to the serial console, but the listing

    could get garbled if not intermingled.

    These are the steps:-

    ==================

    1. Load the arm image on arm debugger first.

    2. Load the dsp image on the dsp:

    3. Run the ARM image. ( Hit the run button )

    4. Run the DSP image. ( Hit the run button immediately)

    You will observe something like below:-

  • When I load the ARM code I get the following error:

    C674X_0: GEL: File: C:\Users\x_dvogel.CORE\DAIRCM_II_sensor_omap\LED_ARM\Debug\LED_ARM.out Does not match the target type, not loaded.

    When I load the DSP I get the following response:

    C674X_0: Output: Target Connected.

    C674X_0: Output: ---------------------------------------------

    C674X_0: Output: Memory Map Cleared.

    C674X_0: Output: ---------------------------------------------

    C674X_0: Output: Memory Map Setup Complete.

    C674X_0: Output: ---------------------------------------------

    C674X_0: Output: KICK Unlocked.

    C674X_0: Output: ---------------------------------------------

    I found the OMAP-L138_LCDK.gel file in the starterware code.  I put it in my project directory and I still get the following error when I try to debug the ARM.

    ARM9_0: GEL: Error while executing OnTargetConnect(): Page fault occurred reading 0x01C10800 at (*((unsigned int *) ((0x01C10000+0x800)+(4*LPSC_num)))&0x1F) [OMAP-L138_LCDK.gel:868] at PSC0_LPSC_enable(0, 0) [OMAP-L138_LCDK.gel:509] at PSC_All_On() [OMAP-L138_LCDK.gel:244] at OnTargetConnect() .

    ARM9_0: Trouble Writing Memory Block at 0x80018800 on Page 0 of Length 0x554: (Error -2030 @ 0x6D697250) Internal error: Access to unknown or invalid register was requested. Restart the application. If error persists, please report the error. (Emulation package 5.1.232.0)

    ARM9_0: Unable to terminate memory download: NULL buffer pointer at 0x320

    ARM9_0: GEL: File: C:\Users\x_dvogel.CORE\DAIRCM_II_sensor_omap\LED_ARM\Debug\LED_ARM.out: Load failed.

  • I'm sorry, I forgot to add that I am using a USB560m emulator.
  • Seems you have selected the OMAPL138_LCDK.gel file for both ARM and DSP core of OMAPL138.
    You should use this gel file only for ARM core and not for DSP.

    Also you should connect ARM core first if you want to run DSP app or ARM app on your board as ARM core would initialize the peripherals on your board.
    OMAPL138 LCDK board doesn't support 'Emulation boot' mode so you should connect ARM core (use gel file for ARM core alone)
  • I have changed the gel file for the ARM to OMAPL138_ARM.gel

    Please tell me the steps that I should go through to connect the ARM core first.

    I am running CCS5.5.  The only thing I do is click on Run->Debug and I get the error shown below. 

  • You should create a new target configuration for your board and emulator.
    View -> Target configuration -> Select the OMAPL138 LCDK target configuration -> Do "Launch selected target configuration" -> Now select the ARM core and connect it (ARM gel file will be called now)

    Please refer to this wiki.
    www.youtube.com/watch
    processors.wiki.ti.com/.../GSG:Debugging_projects_v5