element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Avnet Boards General Data Abort Handler Interrupt
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 0 replies
  • Subscribers 356 subscribers
  • Views 296 views
  • Users 0 members are here
Related

Data Abort Handler Interrupt

Former Member
Former Member over 11 years ago

Hello,
I'm trying to use interrupt from a my custom IP.
I have create signal (signal_IRQ) on the customize IP of the Zynq.
This signal on my Block Design, I connect to GPIO_IO_I port (axi_gpio) and IP2INTC_Irpt to IRQ_F2P.
I tried on another: create interrupt signal (rising edge, 1 bit, priority = medium) in my custom IP and connect signal to IRQ_F2P (without using axi_gpio).
in my IP, interrupt generated every 3 sec.
------------------------------------------------------

In both cases I see the same error.
The first interrupt works OK, but the second doesn't work and gives out a error:
In Debug, my code stop in file port_asm_vectors.s DataAbortHandler (82 line).
How i can correct this problem?


//-----------------------------------------------//
I do C-code in SDK (Release Version: Release 14.4 Build SDK_P.49d) as in examples. my code path:


#define CNT_INTERRUPTtt1
#define CNT_DEVICE_IDtXPAR_AXI_GPIO_0_DEVICE_ID
/***INTERRUPT***/
#define GIC_INTCt   XScuGic
#define GIC_INTC_HANDLER   XScuGic_InterruptHandler
#define GIC_INTC_DEVICE_ID XPAR_PS7_SCUGIC_0_DEVICE_ID
#define CNT_INTERRUPT_ID   XPAR_FABRIC_GPIO_0_VEC_ID
static tGIC_INTC tIntc;
XGpio tttGpioCnt;


Status += XGpio_Initialize(&GpioCnt, CNT_DEVICE_ID);
Status += SetupInterruptSystemGIC();
enable_interrupts();

void Cnt_Isr(void *InstancePtr)
{
tu32 Reg = 0;
t
tXGpio *GpioPtr = (XGpio *)InstancePtr;
tXGpio_InterruptDisablet   (GpioPtr, CNT_INTERRUPT);
tinterrupt_flag = 1;
t
tReg = XGpio_ReadReg(GpioPtr->BaseAddress, XGPIO_ISR_OFFSET);
tXGpio_WriteReg(GpioPtr->BaseAddress, XGPIO_ISR_OFFSET, Reg&CNT_INTERRUPT);
t
tXGpio_InterruptEnable     (GpioPtr, CNT_INTERRUPT);
}


int SetupInterruptSystemGIC()
{
tint Result;
tGIC_INTC *IntcInstancePtr = &Intc;
tXScuGic_Config *IntcConfig;

tIntcConfig = XScuGic_LookupConfig(GIC_INTC_DEVICE_ID);
tif (NULL == IntcConfig) {
ttreturn XST_FAILURE;
t}
tResult = XScuGic_CfgInitialize(IntcInstancePtr, IntcConfig,
tttttIntcConfig->CpuBaseAddress);
tif (Result != XST_SUCCESS) {
ttreturn XST_FAILURE;
t}
tXScuGic_SetPriorityTriggerType(IntcInstancePtr, CNT_INTERRUPT_ID, t 0xA0, 0x3);t// always
t// Connect the interrupt handle

tResult += XScuGic_Connect(IntcInstancePtr, CNT_INTERRUPT_ID,  (Xil_ExceptionHandler)Cnt_Isr,t&GpioCnt);

tif (Result != XST_SUCCESS) {
ttreturn XST_FAILURE;
t}

t//Enable the interrupt for the GPIO, TIMER device.
tXScuGic_Enable(IntcInstancePtr, CNT_INTERRUPT_ID);

t// Enable the GPIO channel interrupts so that push  switch
tXGpio_InterruptEnable(&GpioCnt,  CNT_INTERRUPT);
tXGpio_InterruptGlobalEnable(&GpioCnt);
t// Initialize the exception table and register the interrupt
tXil_ExceptionInit();
tXil_ExceptionRegisterHandler(XIL_EXCEPTION_ID_INT, (Xil_ExceptionHandler)GIC_INTC_HANDLER, IntcInstancePtr);

t

treturn XST_SUCCESS;
}

void enable_interrupts()
{
tXil_ExceptionEnable();
treturn;
}

void disable_interrupts()
{
tXil_ExceptionDisable();
treturn;
}

  • Sign in to reply
  • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube