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.

Error when trying to debug gpio example from StarterWare with CCSv5.4 on lcdkOMAPL138

Other Parts Discussed in Thread: OMAP-L138

Hi,

when trying to debug the gpio example from StarterWare with CCSv5.4 on lcdkOMAPL138 I always get the following Error:

ARM9_0: Output: Target Connected.
ARM9_0: Output: ---------------------------------------------
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(): Attempted to read unmapped virtual memory at 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() .

I imported the example as a CCS project and created a target device file for the lcdkOMAPL138.

The hello world example included in CCS works flawless.

Any guess what's going wrong?

Regards,

Sebastian

  • Sebastian,

    Unfortunately I don't have a LCDK board, but I would first be sure there is no operating system running on the target when trying to connect and run a GEL file, as it will break the current execution. The "unmapped virtual memory" error indicates that the MMU is configured (maybe through an OS such as Linux) and the GEL tried to disrupt this.

    Hope this helps,

    Rafael

  • Hi Rafael,

    thanks for your reply, this got me a bit further. Without Linux running I advanced to the following problem

    ARM9_0: Output: Target Connected.
    ARM9_0: Output: ---------------------------------------------
    ARM9_0: Output: Memory Map Cleared.
    ARM9_0: Output: ---------------------------------------------
    ARM9_0: Output: Memory Map Setup Complete.
    ARM9_0: Output: ---------------------------------------------
    ARM9_0: Output: PSC Enable Complete.
    ARM9_0: Output: ---------------------------------------------
    ARM9_0: GEL: Error while executing OnTargetConnect(): Target failed to write memory at 0x01C11138 at (*((unsigned int *) (0x01C11000+0x138))|=0x1) [OMAP-L138_LCDK.gel:16] at device_PLL0(0, 24, 1, 0, 1, 11, 5) [OMAP-L138_LCDK.gel:403] at Set_Core_300MHz() [OMAP-L138_LCDK.gel:468] at Core_300MHz_mDDR_150MHz() [OMAP-L138_LCDK.gel:245] at OnTargetConnect() .
    ARM9_0: Can't Run Target CPU
    ARM9_0: Trouble Halting Target CPU: (Error -1060 @ 0x2E18) Device is not responding to the request. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.1.73.0)
    ARM9_0: Error: (Error -1029 @ 0x2B5F) Invalid data read from ICECrusher register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.1.73.0)

    The BOOT is set to UART2 right now. Do you have any further hints?

    Regards,

    Sebastiain

  • Problem solved!

    TCLK frequency has to be set to adaptive with user specified limit. Limit set to 1 MHz.

    Sebastian

  • Sebastian,

    Thanks for reporting back your findings. That will surely help others in the future.

    Cheers,

    Rafael

  • Hi,

    I have also been getting the same error as yours except that device being OMAPL138EVM board with CCSv5.4.

     ARM9_0: GEL: Error while executing OnTargetConnect(): Target failed to write memory at 0x01C11138      at (*((unsigned int *) (0x01C11000+0x138))|=0x1)

    [EVMOMAPL138_ARM.gel:25]   at device_PLL0 (0, 24, 1, 0, 1, 11, 5) [EVMOMAPL138_ARM.gel:405]     at Set_Core_300MHz ()

    [EVMOMAPL138_ARM.gel:464] at Core_300MHz_mDDR_150MHz ()

    [EVMOMAPL138_ARM.gel:252] at OnTargetConnect ().

    Could u please tell me how to set the TCLK frequency to be adaptive with user specified limit of 1 MHz.

    Regards,

    Rajesh