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: Loadti stops on loading of *.out

Other Parts Discussed in Thread: AM3359

Tool/software: Code Composer Studio

Hello,

my goal is to automatically test on our target.
To sum up the question:
How can I add calls to the loadti.bat/main.js for calling functions from the GEL file and do SW/HW resets?

In the following is more detail to this question.

Suppose I have a main.c with a printf for “Hello world”.
I compile and link it, so now I have an “out” file.
I now want to download the out file onto the target, run it and capture the stdout to the host machine.

At the moment I am doing this with following script.

....ccsv6\ccs_base\common\bin\fs --cleanall --prompt
loadti.bat --timeout=120000 -n -r -c AM3359.ccxml --coreName CortxA8 main.out

This is working, but not very often.
In many executions the progress simply stops on this command: Loading main.out
It simply stays there forever (timeout is also not working).

My only guess at the moment is, that we have to reset the target before the
phyCORE_AM335x_Initialization script, from our GEL file, is executed.
Therefor I want to know how to call GEL functions from the loadti.bat/main.js.


The function OnTargetConnect() in the GEL file is called. But I can't find from where in loadti/main.js.

Our normal procedure over the GUI looks like this:
Launch target configuration
connect to target (CortxA8)
System Reset
Suspend
CPU reset (HW)
CPU reset (SW)
phyCORE_AM335x_Initialization script
load main.out

Thanks in advance and best regards

------------------------------------------
Code Composer Version: 6.1.0.00104
Modified loadti.bat from CCS version 4.x
SYS/BIOS 6.45.01.29
XDCTools 3.32.00.06 core
NDK 2.25.00.09
Blackhawk Debugger usb560v2
Target: Sitara AM3359 (phyCORE)

  • Hello Tobias,

    Tobias Raul Borchert said:
    How can I add calls to the loadti.bat/main.js for calling functions from the GEL file and do SW/HW resets?

    You will need to modify the loadti DSS script

    The API for calling GEL functions is described in the link below:

    http://software-dl.ti.com/ccs/esd/documents/users_guide/sdto_dss_handbook.html#using-gel

    As for resets beyond the basic reset (which you are calling with -r), I suggest looking at the DSS API documentation, specifically the ResetType class

    Tobias Raul Borchert said:
    This is working, but not very often.
    In many executions the progress simply stops on this command: Loading main.out
    It simply stays there forever (timeout is also not working).

    Can you generate a a DSS log (using the -x option) and attach that to this thread?

    Tobias Raul Borchert said:
    The function OnTargetConnect() in the GEL file is called. But I can't find from where in loadti/main.js.

    OnTargetConnect on a special GEL callback function that automatically gets called after the debugger connects to the target.

    Thanks

    ki

  • Hello,
    I haven’t heard back from you, I’m assuming you were able to resolve your issue. If not, please provide post a reply with an update below (or create a new thread).

    thanks,
    ki
  • Hello Ki,

    thank you very much for your help and sorry for my late response.
    I was very busy in the last few days.

    Sadly I cannot generate a DSS log. The -x option is not working.
    But like I said, I am not using the standard version of loadti.

    The link you provided helped a lot (software-dl.ti.com/.../sdto_dss_handbook.html
    And it seems that my assumption was correct.
    First it needs an reset and afterwards a GEL call to initialization().

    It needs more testing, but it looks like the problem is solved!
    Thank you

    Best Regards

    Raul