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: 
Highlighted
Newbie kirawrath
Newbie
6,645 Views
Registered: ‎12-01-2014

Zynq's GIC initialization

Hi,

 

I'm having problems on the initialization of Zedboard's (Zynq 7000 family) GIC (Generic Interrupt Controller).

I'm not using Vivado or XSDK, as integrating my project (an OS) there proved to be incredibly difficult. The only tool that I use is XMD to load my image to the board.

 

I've followed exacly what the manual (gic architecture specification v1, p. 125) tells us to do, and I've reviewed my code several times. I believe that the only explanation for that is that there is something missing in the manual, like the requirement of some sort of initialization of another component.

 

CPSR is not masking interrupts, my vector table is set up appropriately, and I've initialized the timer to make interrupts.

 

That is the most intriguing is that my code works on qemu, and I do get interrupts while running my OS there, but the hardware seems to be unresponsive to interrupts, and I'm stuck on that.

 

Any advice on that is welcome,

[]'s.

0 Kudos
1 Reply
Scholar sampatd
Scholar
6,620 Views
Registered: ‎09-05-2011

Re: Zynq's GIC initialization

Here is the top-level overview of GIC initialization as per the standalone driver that comes along with the SDK install and Vivado project. 

 

1. Initialize the interrupt controller driver.

 

a. Get the device ID of GIC from the header xparameter.h

b. Lookup the configuration data and initialize the driver with it. 

 

2. Connect the interrupt ID to its handler (assuming that you have written a handler) 

 

3. Enable the interrupt for the interrupt source

 

4. Connect the interrupt handler with the exception table. 

 

Check the example code xscugic_example.c in

 

C:\Xilinx\SDK\2014.3\data\embeddedsw\XilinxProcessorIPLib\drivers\scugic_v2_1\examples

 

 

0 Kudos