Part Number: TMDSDOCK28379D
Other Parts Discussed in Thread: UNIFLASH
Tool/software: TI C/C++ Compiler
According to ticket CS0051159:
Dear TI team,
I am trying to set breakpoints with DSS .js scripting after compiling with option -g, see screenshot below. Method debugSession.target.run() does work.
However, I am getting an error message ('this task cannot be accomplished with the existing AET resources') when I am trying to use Breakpoints.Add on some different C function than main in start.obj. - What's the matter? Can you help, please?
The build in the CCS project is done with these options:
On the command line, we are using uniflash.bat from the scripting examples in the CCS installation.
This .js script will branch into a slightly modified uniFlash_operation.js which roughly contains this:
debugSession.breakpoint.add( "main");
- works
debugSession.breakpoint.add( "C$$EXIT");
- works
debugSession.breakpoint.add( "set_breakpoint_here");
- does not work
where set_breakpoint_here() is any C function implemented in start.c or in a different translation unit built with the options depicted above.
According to some thread back from Jul, 8th, 2018, I am requiring a means to set HW breakpoints by .js scripting. With regards to AET resources, I have read about a difference between software and hardware breakpoints which might play a role. But if so, do I need to understand how to set Breakpoint.Properties first to let the DSS .js script set HW breakpoints properly?
Thanks!
