Hello,
I am trying to trigger UART2 interrupt in SYS/BIOS. I see in debug mode that when it receives data the IPEND bit is set to 0 and RBR/THR register receives proper data but the registered interrupt doesn't want to trigger. Do I need anything more than this code for configuring interrupt?
#include <ti/sysbios/family/arm/da830/Hwi.h>
xdc_Void myIsr(xdc_UArg arg)
{
Hwi_beginIRQ();
System_printf("\r\nInterrupt");
Hwi_endIRQ();
}
int main()
{
Hwi_Params hwiParams;
Hwi_Handle myHwi;
Error_Block eb;
Error_init(&eb);
Hwi_Params_init(&hwiParams);
hwiParams.eventId = 61;
hwiParams.enableInt = true;
myHwi = Hwi_create(2, (ti_sysbios_interfaces_IHwi_FuncPtr)myIsr, &hwiParams, &eb);
if (myHwi == NULL)
System_abort("Hwi create failed");
Hwi_enableIRQ();
(...) //some task creation with System_flush() and task_sleep
BIOS_start();
}
Of course UART2 is configured as well for triggering interrupts.