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)