cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dps
Contributor
Contributor
1,898 Views
Registered: ‎06-16-2017

Interrupt driven AXI UART

Jump to solution

Hi,

 

I'm trying to write an interrupt driven UART routine but am having trouble finding a lot of documentation on how to do this.  One example program that I have seems to indicate that I need "xintc.h" but it's not anywhere to be found when I export my hardware project from Vivado to SDK.  And yes, I do have the interrupt enabled in Vivado.

 

Thanks for your help!

 

Dan

0 Kudos
Reply
1 Solution

Accepted Solutions
hbucher
Scholar
Scholar
2,689 Views
Registered: ‎03-22-2016

@dps Best place to look for examples is in the SDK itself. 

Generate a "Hello World" application with respective BSP. Open the BSP's system.mss and you will see tons of examples for each of the IPs included. 

 

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.

View solution in original post

examples.PNG
0 Kudos
Reply
4 Replies
hbucher
Scholar
Scholar
1,875 Views
Registered: ‎03-22-2016

@dps You need an AXI interrupt controller in your design. SDK only "imports" what's needed in the design.

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
0 Kudos
Reply
dps
Contributor
Contributor
1,854 Views
Registered: ‎06-16-2017

Hi Henry,

 

I have an AXI UART LITE block with interrupt output that now goes to the interrupt input on the AXI Interrupt Controller.  The output of the interrupt controller is connected to the input of the ZYNQ7 Processing System (IRQ_F2P[2:0].

 

Do you have any sample C code that I could look at to tie all this together?

 

Thanks,

Dan

0 Kudos
Reply
hbucher
Scholar
Scholar
2,690 Views
Registered: ‎03-22-2016

@dps Best place to look for examples is in the SDK itself. 

Generate a "Hello World" application with respective BSP. Open the BSP's system.mss and you will see tons of examples for each of the IPs included. 

 

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.

View solution in original post

examples.PNG
0 Kudos
Reply
dps
Contributor
Contributor
1,831 Views
Registered: ‎06-16-2017

Hi Henry,

 

Will do.

 

Thanks for your help...

 

Dan