UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer jacobfeder
Observer
1,956 Views
Registered: ‎05-04-2017

xuart_ps_intr_example.c code not working

Jump to solution

Can someone confirm? I have tried it with a clean project and it seems that the interrupt handler function never gets called and the program gets stuck in an infinite loop.

 

Thanks

0 Kudos
1 Solution

Accepted Solutions
Observer jacobfeder
Observer
3,247 Views
Registered: ‎05-04-2017

Re: xuart_ps_intr_example.c code not working

Jump to solution

I believe I found the problem. On line 93:

#define UART_INT_IRQ_ID XPAR_XUARTPS_1_INTR

should be:

#define UART_INT_IRQ_ID XPAR_XUARTPS_0_INTR

 

The example was using the the interrupt id of UARTPS_1 but the device id of UARTPS_0

1 Reply
Observer jacobfeder
Observer
3,248 Views
Registered: ‎05-04-2017

Re: xuart_ps_intr_example.c code not working

Jump to solution

I believe I found the problem. On line 93:

#define UART_INT_IRQ_ID XPAR_XUARTPS_1_INTR

should be:

#define UART_INT_IRQ_ID XPAR_XUARTPS_0_INTR

 

The example was using the the interrupt id of UARTPS_1 but the device id of UARTPS_0