Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE
Tool/software:
I have noticed that when I enable the CM UART with DMA on the receive line, it does not trigger the receive interrupt on neither DMARX INT nor the normal RX INT
My initialization code is as follows:
UART_setConfig(BASE, UART_CLK_FREQ, BAUD_RATE,
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
UART_CONFIG_PAR_NONE));
UART_enableFIFO(BASE);
UART_setFIFOLevel(BASE, UART_FIFO_TX7_8, UART_FIFO_RX1_8);
UART_setTxIntMode(BASE, UART_TXINT_MODE_EOT);
UART_registerInterrupt(INTERRUPT, &Isr);
UART_enableInterrupt(BASE, <either UART_INT_DMARX or UART_INT_RX> | UART_INT_RT);
UART_enableModule(BASE);
UART_enableDMA(BASE, UART_DMA_RX | UART_DMA_TX);
ISR:
uint32_t interrupt_status = UART_getInterruptStatus(BASE, UART_MASKED_INT);
UART_clearInterruptStatus(BASE,UART_INT_DMARX | UART_INT_RX | UART_INT_9BIT); //!< Clear interrupt statuses as early as possible
if (interrupt_status & (UART_INT_RX | UART_INT_DMARX))
{
__asm(" bkpt #0");
}
if (interrupt_status & UART_INT_RT)
{
// Handle timeout
}
The breakpoint never triggers, although data is received