Hi there,
I am having problem creating Hwi dynamically. In a thread I put the following code:
#include <ti/sysbios/hal/Hwi.h>
......
Hwi_Handle hwi0;
Hwi_Params hwiParams;
Error_Block eb;
Error_init(&eb);
Hwi_Params_init(&hwiParams);
hwiParams.arg = 0;
hwiParams.enableInt = 1;
hwiParams.eventId = 84;
hwiParams.priority = 8;
hwi0 = Hwi_create(4, (Hwi_FuncPtr)isrConverter, &hwiParams, &eb);
if (hwi0 == NULL) {
System_abort("Hwi create failed");
}
The code runs with no complain, but the isrConverter is not running at all - the break point at the begining of the routine was not hit!
I have tried setting up the Hwi statically in the cfg file, and it runs well.
What am I missing here? How should I debug?
BR
C.J.