cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor
Visitor
345 Views
Registered: ‎09-20-2019

AXI timer

Currently we are using AXI timer in our design for which we are using bare metal application called  xtmrctr_intr_example.c but we are facing an error as shown in below screenshot.

Screenshot from 2020-02-10 09-51-03.png

0 Kudos
6 Replies
Highlighted
Adventurer
Adventurer
320 Views
Registered: ‎09-13-2018

Re: AXI timer

Hi,

Did you connect AXI_TIMER interrupt output port to your PS7 input interrupt port ? If not, then there will be no XPAR_INTC_0_TMRCTR_0_VEC_ID in xparameters.h as no interrupt line is connected.

cheers

0 Kudos
Highlighted
Visitor
Visitor
305 Views
Registered: ‎09-20-2019

Re: AXI timer

We connected  AXI_TIMER interrupt output port to PS7 input interrupt port but still getting the same error.

 

0 Kudos
Highlighted
Adventurer
Adventurer
293 Views
Registered: ‎09-13-2018

Re: AXI timer

i would check then xparameters.h for axi_interrupt id number and define name. If core name is different, then #define in xparameters will have different name, so check it and replace
#define TMRCTR_INTERRUPT_ID XPAR_INTC_0_TMRCTR_0_VEC_ID
with generated name
0 Kudos
Highlighted
Visitor
Visitor
280 Views
Registered: ‎09-20-2019

Re: AXI timer

In xparameters.h we define with the same name but we are facing the same error.Could you please suggest any other possible ways to resolve the error.

Actually we need to implement 100 micro seconds time period using AXI_timer for that we need a bare metal application to check whether interrupt occurs properly or not.Please suggest me the possible ways.

 

Thank you.

0 Kudos
Highlighted
Adventurer
Adventurer
255 Views
Registered: ‎09-13-2018

Re: AXI timer

simple solution

go to xparameters.h in your bsp to interrupts defines, check for axi_timer_* interrupts definitions.

/* Definitions for Fabric interrupts connected to ps7_scugic_0 */
#define XPAR_FABRIC_CHSI_MAIN_IRQ_O_INTR 61U
#define XPAR_FABRIC_CHSI_TEST_IRQ_O_INTR 62U
#define XPAR_FABRIC_CRYPTO_SYNC_IRQ_O_INTR 63U
#define XPAR_FABRIC_XADC_WIZ_IP2INTC_IRPT_INTR 64U
#define XPAR_FABRIC_AXI_TIMER_X_INTERRUPT_INTR 65U

/******************************************************************/

/* Canonical definitions for Fabric interrupts connected to ps7_scugic_0 */
#define XPAR_FABRIC_SYSMON_0_VEC_ID XPAR_FABRIC_XADC_WIZ_IP2INTC_IRPT_INTR
#define XPAR_FABRIC_TMRCTR_0_VEC_ID XPAR_FABRIC_AXI_TIMER_X_INTERRUPT_INTR

 XPAR_FABRIC_AXI_TIMER_X_INTERRUPT_INTR -> go to xtmrctr_intr_example to line and change it:

#define TMRCTR_INTERRUPT_ID XPAR_FABRIC_AXI_TIMER_X_INTERRUPT_INTR

or to

XPAR_FABRIC_TMRCTR_0_VEC_ID 

as even your eclipse help suggested

 

 

0 Kudos
Highlighted
Visitor
Visitor
187 Views
Registered: ‎09-20-2019

Re: AXI timer

Thnak you for your help.

0 Kudos