I have seen other posts similar to this but am still missing something. I have defined swiParams2 in the .cfg file as such..
Program.global.swiParams2 = new Swi.Params;
In the .c file ...
extern Swi_Params swiParams2;
...
swiParams2.arg0 = 5;
I keep getting the following error at compile time / xds time:
js: "C:/ti/xdctools_3_30_05_60_core/packages/xdc/cfg/Main.xs", line 48: XDC runtime error: Program.global.swiParams2 (of type class xdc.services.intern.xsr.Value$Obj): not an Instance
Not sure what I'm doing wrong here. This seems similar to the following, which is not generating any errors:
var swiParams = new Swi.Params; // .cfg
Swi_post(swi0); // .c filea
-Scott