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: 
Explorer
Explorer
4,547 Views
Registered: ‎12-06-2013

Zynq Timer and UART interrupt examples will not work together

Jump to solution

Vivado 2014.3

Win 7, 64-bit sp1

microZed

Core0, UART1 & Timer

 

Trying to use both interrupt examples and the UART interrupt will stop working some time during the Timer interrupt example setup.

 

Both work stand alone. 

 

Thanks in advance,

0 Kudos
1 Solution

Accepted Solutions
Explorer
Explorer
6,587 Views
Registered: ‎12-06-2013

Re: Zynq Timer and UART interrupt examples will not work together

Jump to solution

Thanks for the repy muzzafer, turns out that I was redefining the struct for the type XScuGic when I initialized the second interrupt. I think I was assigning the GIC in a different spot in memory so the previous interrupt no longer worked.

0 Kudos
6 Replies
Explorer
Explorer
4,525 Views
Registered: ‎12-06-2013

Re: Zynq Timer and UART interrupt examples will not work together

Jump to solution

If I change the order in which the examples are started, the last device is always the one enabled.

0 Kudos
Teacher muzaffer
Teacher
4,518 Views
Registered: ‎03-31-2012

Re: Zynq Timer and UART interrupt examples will not work together

Jump to solution
Are you sure you are enabling both interrupts ? The fact that the last one gets started stays enabled suggests that the enable code is disabling all other interrupts. Check for a bitfield where you set multiple bits to enable multiple interrupts. Also make sure that you understand the priority of interrupts and what happens if you get the higher priority interrupt while you are servicing the lower priority one. Nested interrupts are difficult to test & debug.
- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
Explorer
Explorer
6,588 Views
Registered: ‎12-06-2013

Re: Zynq Timer and UART interrupt examples will not work together

Jump to solution

Thanks for the repy muzzafer, turns out that I was redefining the struct for the type XScuGic when I initialized the second interrupt. I think I was assigning the GIC in a different spot in memory so the previous interrupt no longer worked.

0 Kudos
Highlighted
Visitor zhouyigang
Visitor
2,082 Views
Registered: ‎12-11-2014

Re: Zynq Timer and UART interrupt examples will not work together

Jump to solution
Dear jeff,
I met the same problem.Could please tell me how you did in detail?
Thanks in advance
0 Kudos
Visitor ashish7724
Visitor
1,798 Views
Registered: ‎04-21-2016

Re: Zynq Timer and UART interrupt examples will not work together

Jump to solution

Hello,

 

I am  trying to implement two interrupt, one with timer and uart

could you share your code for reference

0 Kudos
Visitor quicktom
Visitor
30 Views
Registered: ‎01-23-2019

Re: Zynq Timer and UART interrupt examples will not work together

Jump to solution
0 Kudos