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.

CCS/AM6548: Unable to load .out continuously via scripting console (Have to relaunch target configuration each time)

Part Number: AM6548

Tool/software: Code Composer Studio

Hello,

We are using Code Composer Studio 8.3.00009 and load the application .out to AM654x IDK R5F core via the scripting console (we use launch_am65xx.js packaged in Processor SDK 05.02.00.07 release).

We are observing an issue which prevents us from loading the .out continuously (It means that we have to relaunch the target configuration each time). 

We suspect the TI Emulator version here. We don't have this problem while using emulator 8.0.903.2 which comes by default with CCS 8.3.00009

Issue started seen with TI emulator version 8.1.0.00012, and can be reproduced with latest 8.2.0.00004 as well 

Below is the error description shown in CCS scripting console:

Error loading "....am65xx/05_02_00_10_GA/pdk_am65xx_1_0_3/packages/ti/drv/sciclient/tools/ccsLoadDmsc/am65xx/sciclient_ccs_init_mcu1_0_release.xer5f": Timed out after 20000ms while waiting for target to halt after an auto-run to "main (...\am65xx\loading_.out_file\launch_am65xx_05_02_00_10.js#131)

Could you please check what could be the reason for this issue? Please let us know if you need any additional details regarding our test setup, configuration etc

Regards,
Nijin P

  • Hi,

    This may be an issue with the following scenarios:

    Emupack 8.1.0.00012

    The emupack that ships with CCSv9.0.x versions (8.1.0.00012) has some jitter on the clock edges when running at 2.5MHz (the maximum speed of this version(, which may cause very random communication errors with the target. Although errors are not regularly seen with the compact Launchpads, the longer cconnections of your setup (or even the use of isolation adapters, for example) can contribute to this problem. 

    The remedy for this is to lower the TCK speed to 1.25MHz. This will reduce the jitter and should warrant a reliable connection. 

    Emupack 8.2.0.00004

    Taking into consideration this worked before the update, I can think of one important change made to the newest TI Emulators package and XDS110 Debug Probes: the default TCLK speed.

    With this new emupack, some performance improvements enabled higher speeds up to 14MHz and the default was set to 8MHz, which was tested to be compatible with the Launchpads and development kits. However, this may be too high depending on the length of the connections and other physical factors.

    In this case, the first thing I would try is to reduce the TCLK to the previous default of 2.5MHz and see if you can get a stable connection. 

    Details can be seen in the clip below, where I explore various scenarios to test the TCLK.

    https://www.youtube.com/watch?v=mKxaztkCsYw&t=27s 

    My suggestion is to follow the second one and see if you get a stable connection. 

    I was able to keep my AM65x EVM connected and disconnected quite frequently with CCSv9.1.0 and the latest emupack. 

    Hope this helps,

    Rafael