Hi,
I'm trying to use the interrupt from UART1 so I can trigger an interrupt every time the UART receives an incoming byte. I've attached a picture of my block diagram. I'm using an Ultra96V2.
I've tried using the example code provided by Xilinx at: https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/uartps/examples/xuartps_intr_example.c
I've adapted code from the example to use UART1 rather than UART0 as shown below:
#ifdef XPAR_INTC_0_DEVICE_ID
#define INTC XIntc
#define UART_DEVICE_ID XPAR_XUARTPS_1_DEVICE_ID
#define INTC_DEVICE_ID XPAR_INTC_0_DEVICE_ID
#define UART_INT_IRQ_ID XPAR_INTC_0_UARTPS_1_VEC_ID
The code as is will hang, unless the while loop on line 284 is adapted and a counter added so it doesn't hang.
I've experimented with the Handler, and it seems that it is never called during the example. Does anyone know why this is happening? Any help would be hugely appreciated!