Hello,
I'm trying to run a program with arguments on a TMS320C6657 target.
I understood from e2e.ti.com/.../3263 and e2e.ti.com/.../300002 that it is nearly impossible to do it in Debug mode.
That why I try to do it by launching the program from a batch with following command : call C:\ti\ccsv5\ccs_base\scripting\examples\loadti\loadti -c=.\..\targets\mytarget.ccxml .\..\bin\myprogram.out -v
I use Code Composer Studio Version: 5.4.0.00091 and proceeded that way :
- declaring a global variable : int verbose
- writing my main function with this form : int main (int argc, char *argv[])
- treating the arg like that :
if(argv[1]=="-v"){
verbose =1;
}
- setting Properties -> CCS Build -> C6000 Linker -> Advanced Options -> Set C arg/argv memory size (--arg_size, --args) at a value of 64
When launching the bat, I obtain :
"SEVERE: __c_args__ not defined. Use "--args=n" when linking target executable to allocate n bytes for arguments.
Error code #4011, .\..\bin\myprogram.out load failed!
Aborting!"
What would be the proper way to configure the build, call my program and transmit my argument ?
Thank you,
AD