Other Parts Discussed in Thread: OMAP-L138, SYSBIOS
Hi all,
I try to create HWI for the UART2 on my OMAP-L138, I use SYSBIOS 6.33.04.39 and CCS 5.1. I want to create a interrupt on the DSP when I receive data on the UART2. In the http://www.ti.com/lit/ug/spruh77a/spruh77a.pdf they said in the table 3-1, the event for the UART2 is the 69.
Here is my code:
void main(void)
{
uint32_t rtn;
rtn = UART_init(DEBUG_PORT, 115200);
if (rtn != ERR_NO_ERROR)
{
puts("error initializing uart!\r\n");
}
UART_txString(DEBUG_PORT, "Start test!!\r\n\r\n");
Hwi_Params hwiParams;
Hwi_Handle myHwi;
Hwi_Params_init(&hwiParams);
hwiParams.eventId = 69;
hwiParams.enableInt = true;
myHwi = Hwi_create(2, (ti_sysbios_interfaces_IHwi_FuncPtr)UART_interrupt, &hwiParams, NULL);
if (myHwi == NULL)
puts("Hwi create failed");
UART_txString(DEBUG_PORT, "HWI Configurer\r\n\r\n");
BIOS_start(); // start the sysBIOS
}
void UART_interrupt(void)
{
UART_txString(DEBUG_PORT, "TEST REUSSI!!!\r\n\r\n");
}
I can see in the ROV that the HWI is create and I can send string to the PC, so I know the UART communication work. I sure that i miss something but i cant figure it out.
Thanks


