Part Number: AM3352
Tool/software: TI-RTOS
Dear Champs,
I'm trying to develop SWI example on AM335x RTOS and I found SWI was not generated even after SWI_post().
Could you please help to debug this issue?
Especially I'm wondering how I can pass SWI_Handle into swi_post() when I created SWI in the cfg file, and I used 'extern' in the C code as below, but I'm not sure.
in main.c:
extern Swi_Handle LEDSwi;
Void taskFxn(UArg a0, UArg a1)
{
System_printf("enter taskFxn()\n");
Task_sleep(10);
//Hwi_post(5);
Swi_post(LEDSwi);
System_printf("exit taskFxn()\n");
}
in app.cfg:
var swi0Params = new Swi.Params();
swi0Params.instance.name = "LEDSwi";
swi0Params.priority = 1;
Program.global.LEDSwi = Swi.create("&mySwiFxn", swi0Params);
LoggingSetup.sysbiosSwiLogging = true;
I uploaded full sources in below.
Thanks and Best Regards,
SI.