Tool/software: Code Composer Studio
Hello,
I'm trying to add in an exception hook, using sys-bios with C6746. I've added the following to my .cfg file
var Exception = xdc.useModule( 'ti.sysbios.family.c64p.Exception' );
Exception.enablePrint = true;
Exception.exceptionHook = exception_hook;
//Exception.internalHook = exception_hook;
But the link keeps failing, saying it's undefined, even though I've added the function into one of my source files, which does compile:
js: "one.cfg", line 347: ReferenceError: "exception_hook" is not defined. (one.cfg#347)
"./package/cfg/one_pe674.cfg", line 188
xdctools_3_50_04_43_core\gmake.exe: *** [package/cfg/one_pe674.xdl] Error 1
xdctools_3_50_04_43_core\gmake.exe: *** [package/cfg/one_pe674.xdl] Deleting file `package/cfg/one_pe674.h'
xdctools_3_50_04_43_core\gmake.exe: *** [package/cfg/one_pe674.xdl] Deleting file `package/cfg/one_pe674.c'
js: "C:/ti/xdctools_3_50_04_43_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1434037521-inproc] Error 1
Please advise,
Robert