Hi,
I have some problems with configuration of Hwi on my IDK AM437X board with Sys/Bios. There is an user switch connected to pin AC18 (which accounts for GPIO4B), so I decided to program a hardware interrupt dynamically. In Table ARM Cortex-A8 Interrupts from Technical Reference Manual GPIOINT4B stands for Int Number 139. Part of my code responsible for this task in Idle state is:
Hwi_Handle Hwi;
Hwi_Params HwiParams;
Error_Block eb;
Hwi_Params_init(&HwiParams);
HwiParams.arg=5;
HwiParams.enableInt = TRUE;
HwiParams.eventId = 139;
Error_init(&eb);
Hwi_create(139, HwiFxn, &HwiParams, &eb);
and the appropriate function HwiFxn is described as:
Void HwiFxn(UArg a0, UArg a1){
CONSOLEUtilsPrintf("Button pressed...\n");
}
I've tried many ways and parameters but every time my project compiles succesfully, Sys/Bios with other Tasks operate correctly but the Hwi doesn't work. Could you tell me if the presented way is correct or what to check/correct in my example. I use CCS 6.1.2, SYS/BIOS 6.42.3.35 and XDCtools 3.31.2.38.
Regards,
Jacek