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.

loadti sometimes works fine, but occasionally hangs

Other Parts Discussed in Thread: RM48L950

From CCS5.3 I can successfully download and run on my target, but I need to automate this from a batch file and so I am using loadti to download and execute on my target (in this case an RM48L950). Most of the time, the download works fine and the program runs:

set PATH=%PATH%;"c:\ti\ccsv5\ccs_base\scripting\examples\loadti\";
call loadti -v -n -r -c C:\LDRA\LDRA_Demos\TICCS50_Workspace\TICCS50_RM48L950_Dice\target.ccxml -n C:\LDRA\LDRA_Demos\TICCS50_Workspace\TICCS50_RM48L950_Dice\LDRA\TICCS50_RM48L950_Dice.out

But sometimes it just hangs. I switched on the -v option and when it hangs it is doing the following:

...

reset: Target reset
getBoolean: ENTRY
getBoolean: RETURN false
reset: RETURN
testEnv.outFiles: C:\LDRA\LDRA_Demos\TICCS50_Workspace\TICCS50_RM48L950_Dice\LDRA\TICCS50_RM48L950_Dice.out
Loading C:\LDRA\LDRA_Demos\TICCS50_Workspace\TICCS50_RM48L950_Dice\LDRA\TICCS50_RM48L950_Dice.out
loadProgram: ENTRY sFileName: C:\LDRA\LDRA_Demos\TICCS50_Workspace\TICCS50_RM48L950_Dice\LDRA\TICCS50_RM48L950_Dice.out
load: Requesting program load
waitUntil: ENTRY timeout: infinite
setupBeforeRun: ENTRY emuPin: 0
exists: ENTRY sSymbol: _RTDX_JTAGONLY
exists: Getting symbol package
exists: Looking-up symbol
exists: RETURN false
exists: ENTRY sSymbol: _RTDX_HPONLY
exists: Getting symbol package
exists: Looking-up symbol
exists: RETURN false
exists: ENTRY sSymbol: _RTDX_ICEONLY
exists: Getting symbol package
exists: Looking-up symbol
exists: RETURN false
exists: ENTRY sSymbol: RTDX$$MSG
exists: Getting symbol package
exists: Looking-up symbol
exists: RETURN false
getConfigMode: ENTRY
getConfigMode: RETURN 1
getConfigMode: ENTRY
getConfigMode: RETURN 1
exists: ENTRY sSymbol: rtdxCioOutputChannel
exists: Getting symbol package
exists: Looking-up symbol
exists: RETURN false
waitUntil: RETURN
load: Program load successful
getBoolean: ENTRY
getBoolean: RETURN true
waitForHaltIfPropertySet: Waiting for halt
waitUntil: ENTRY timeout: infinite
==>  ( just hangs here )

Any idea what I can do to resolve this?

Thanks

Mark



  • Hi Mark,

    Are you using BIOS?

    Thanks

    ki

  • no I am not, this is a simple program without an OS

  • hmm. ok. There are a lot of RTDX diagnostic messages in there, I was wondering if you had RTDX support enabled in the BIOS config file.

    What is interesting is that you occasionally see this occur via loadti only. Loadti would be calling the same debug server as the CCS GUI.

    In any case the place where it hangs:

    mark richardson1 said:

    waitForHaltIfPropertySet: Waiting for halt
    waitUntil: ENTRY timeout: infinite
    ==>  ( just hangs here )

    What is happening is that the option to auto-run to label is enabled and it is waiting until that label is reached. By default it is main. I assume you have this label in your program since it works most of the time. So for the few times it is not, there must be something with the state of the target where main is not being reached. The question is why