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.

LP-AM261: GEL stuck Expression: OnTargetConnect()

Part Number: LP-AM261

Tool/software:

Hi Team,

I need your support on the following request:

####################################

We have an LP-AM261 development board.
I am using the CCS v20.1.1.8_1.7.1 IDE but when I launch the debugger remains
GEL stuck Expression: OnTargetConnect().

By trying to see the Gel file launched from IDE I see it crashes to 

WHILE(READ_MMR(MSS_RCM_U_BASE + MSS_RCM_GPMC_CLK_STATUS) != 0X410);

In the program_GPMC_locks() hotmenu.

What am I doing wrong and how can I unlock the situation? 

Regards,

Fabio

  • Hi Fabio,

    What target configuration are you using to launch the debug session? Is it one of the default ones from our SDK or a custom one?

    Regards,

    Peter

  • The sdk used is the "mcu_plus_sdk_am261x_10_02_00_15" and we are trying to run the "hello_world_am261x-lp_r5fss0-0_nortos_ti-arm-clang"

  • Hi James,

    Can you check the boot mode on the LP board? Refer to the user's guide for the correct orientation

    Regards,

    Peter

  • SW4.4 = 0, SW4.3 = 1, SW4.2 = 0, SW4.1 = 0(where 1 is the position ON of the switch, but I also tried the inverted configuration and the problem still persist) which suppose to be DevBoot. Should I select a different bootmode for the "hello_world_am261x-lp_r5fss0-0_nortos_ti-arm-clang" example?

  • Hi James, 

    Can you try the same process using CCS 12.8.1? The AM261x MCU+ SDK has the following software tool requirements:

    Regards,

    Brennan

  • Tested with CCS 12.8.1.00005 with these configurations but it still gets stuck on OnTargetConnect() and after a while(more than 15mins) of running I get this error:

    Cortex_R5_0: Trouble Reading Memory Block at 0x53208a00 on Page 0 of Length 0x4: (Error -1205 @ 0x53208A00) Device memory bus has an error and may be hung. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 20.0.0.3178)
    Cortex_R5_0: GEL: Error while executing OnTargetConnect(): Target failed to read 0x53208A00
    at (Read_MMR((0x53208000U+0x00000A00))!=0x410) [AM261x_Peripheral_Clocks.gel:318]
    at Program_GPMC_Clocks() [AM261x_PLL.gel:559]
    at Configure_All_Peripheral_Clks_500MHzPLL() [AM261x.gel:135]
    at Configure_R5F0_500MHZ() [AM261x_common.gel:254]
    at Core_Frequency_Select() [AM261x.gel:87]
    at OnTargetConnect()

    Then seems like the debug has started but then it get's stuck on void _DebugP_assert(int32_t expression, const char *file, const char *function, int32_t line, const char *expressionString)

  • Hi James,

    Can you check the EVM revision? It is printed on the PCB silkscreen:

    If it says 'E1' as shown in this image, please try uninstalling the SDK 10.02 and installing the SDK 10.01. SDK 10.02 does not support the E1 revision out of the box.

    Regards,

    Brennan

  • I have the same exact issue as James, have an 'E1' board, removed SDK 10.02 and installed SDK10.00.01. Imported "hello world" from SDK 10.00.01 But getting the same result, stuck on  GEL Expression: OnTargetConnect()  after about 5 to 10 minutes I get the same error: 

    Cortex_R5_0: Trouble Reading Memory Block at 0x53208a00 on Page 0 of Length 0x4: (Error -1205 @ 0x53208A00) Device memory bus has an error and may be hung. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 20.1.0.3429)
    Cortex_R5_0: GEL: Error while executing OnTargetConnect(): Target failed to read 0x53208A00
    at (Read_MMR((0x53208000U+0x00000A00))!=0x410) [AM261x_Peripheral_Clocks.gel:318]
    at Program_GPMC_Clocks() [AM261x_PLL.gel:559]
    at Configure_All_Peripheral_Clks_500MHzPLL() [AM261x.gel:135]
    at Configure_R5F0_500MHZ() [AM261x_common.gel:254]
    at Core_Frequency_Select() [AM261x.gel:87]
    at OnTargetConnect()

  • Jose, James,

    Can you please try updating your CCS Sitara device support?

    1. Open the existing Code Composer Studio application.
    2. Navigate to "Help" → "Check for Updates..." in the application title bar.
    3. Ensure that the AM2x Arm®-based MCU Device Feature Support file uses the latest "Current" version.
      1. If not, select the check box to install the "Current" version option.

    Regards,

    Brennan

  • Mine is at 1.4.4

  • Hi Jose,

    Can you update the ccs to 20.2 and try again.

    www.ti.com/.../20.2.0

  • Hi Nilabh, thank you, that worked. With CCS version 20.2 I can get to start debugging. Now there is a new issue running the "Hello World" example. "Cortex_R5_0: ASSERT: 0.1s: soc/am261x/soc_rcm.c:SOC_rcmGetCoreFout:1709: FOut != 0 failed !!! "


  • Actually, I went back to the latest SDK "mcu_plus_sdk_am261x_10_02_00_15" and ran that "Hello World" project and that one runs fine.

  • Yes please use the latest sdk, as clock configuration has been adjusted with CCS gels.

  • This solved my problem too. Thanks

  • James, Jose,

    Glad your issue is resolved. I am closing this thread.

    Regards,

    Brennan