I'm quite new to the Blackfin processor and struggeling with a problem thtat should be simple...
I'm using a BF561 processor and gcc as compiler, and trying to get the uart up and running using interrupts. Using polling everything is fine.
The problem is that the TX interrupt isr is never called.
The code is more or less a copy of the code in the examples that comes with VisualDSP++.
My uart initialization procedure looks like this:
*pUART_GCTL=UCEN; //enable uart
*pUART_LCR=DLAB; //enable divisor latch
*pUART_DLL=54; //set baud rate
*pUART_LCR=WLS(8); //set 8N1
and the ISR simply transmits a buffer and looks like this:
void __attribute__((interrupt_handler)) UART_TX_ISR(void)
I start the transmission by loading the buffer and copying the first char directly to the UART_THR. The first byte is transferred just fine, but the ISR is never triggered.
Any suugestions to why the interrupt is never generated?