Hi,
I'm trying to develop a small example using this IP through interrupts. I saw some examples using Timers,
but I would like to use this IP.
Does someone know where could I get some kind of information?
Thanks,
Hi,
I'm trying to develop a small example using this IP through interrupts. I saw some examples using Timers,
but I would like to use this IP.
Does someone know where could I get some kind of information?
Thanks,
Once you have exported your hardware design to SDK open up the system.mss file (under the 'bsp folder in the Project Explorer pane on the left) and click on the 'examples' link to the right of the timer you want to use in the 'Peripheral Drivers' section. The interrupt drive example code should give you a good start.
-Gary
Hi,
Thanks for the answer, but for this IP there is no example code exported from hardware designs, or I can't find it.
I would suggest using the 'interrupt' version of the example code for one of the timer IP that is supplied as a starting point. Just strip out the portion of the code that initializes and re-programmes the timer.
-Gary
@TroutChaser I think you've understood @jesusmgonzalez wrong. He want to use the "Fixed Interval Timer" this Timer has no AXI connection and therefore no drivers. I have the same problem here could run the Interrupt example with the AXI Timer but not with some non AXI IP core. I've been looking for quite a while but can't find an answer. I've defined the Port as Interrupt Port and connected it via concat to the IRQ of the Zynq. It schows up with a number in my xparameters.h file but the initialization via XScuGic_Connect, XScuGic_SetPriorityTriggerType and XScuGic_Enable will trigger nothing. The GIC initialisation is done the same way as at the AXI Timer example. The only thing that is not clear is the last parameter of the XScuGic_Connect function (I've tried 0 and &InterruptController (from XScuGic_CfgInitialize)). So does someone no how to do that?
I've found a Solution I was just copying the code from stephenm (05-15-2013 03:56AM) and it worked... Put my Code in the same initialisation direction as in his code and it worked as well... very weird. I Just throw out the second Interrupt and replaced the Interrupt Number with my define from my xparameters.h file.