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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development PL to PS Interrupt disabling Ethernet Echo lwIP example
  • 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 1 reply
  • Subscribers 310 subscribers
  • Views 551 views
  • Users 0 members are here
Related

PL to PS Interrupt disabling Ethernet Echo lwIP example

Former Member
Former Member over 9 years ago

I'm using an interrupt from the PL to the PS from my custom IP that indicates data is ready to be read. I used code provided by AR #56446 to configure the interrupt in the SDK code. I'm getting the interrupt from the PL just fine, however enabling this interrupt in the way that I'm doing it seems to disable the Ethernet Echo functionality. I've isolated the issue to the interrupt configuration code. When I disable InitializeInterruptSystem () the Echo functionality comes back. BSP is the standard package created by the SDK for the example lwIP Echo project. Can someone please tell me what I'm doing wrong here?

InitializeInterruptSystem  is as below:

int InitializeInterruptSystem ( deviceID ) {

int Status;
 
GicConfig = XScuGic_LookupConfig ( deviceID );
if ( NULL == GicConfig ) {
return XST_FAILURE;
}
Status = XScuGic_CfgInitialize ( &InterruptController, GicConfig, GicConfig->CpuBaseAddress);
if ( Status != XST_SUCCESS ) {
return XST_FAILURE;
}
 
Status = SetUpInterruptSystem ( &InterruptController);
if ( Status != XST_SUCCESS ) {
return XST_FAILURE;
}
 
Status = XScuGic_Connect ( &InterruptController,
XPAR_FABRIC_AXI_DMA_0_S2MM_INTROUT_INTR,
(Xil_ExceptionHandler)InterruptHandler,
NULL);
/* Status = XScuGic_Connect ( &InterruptController,
XPAR_FABRIC_AXI_DMA_0_S2MM_INTROUT_INTR,
(Xil_InterruptHandler)InterruptHandler,
NULL);*/
XScuGic_Enable (&InterruptController, XPAR_FABRIC_AXI_DMA_0_S2MM_INTROUT_INTR);
 
// Initialize exception table and register the interrupt controller handler with exception table
Xil_ExceptionInit();
Xil_ExceptionRegisterHandler(XIL_EXCEPTION_ID_INT, (Xil_ExceptionHandler)XScuGic_InterruptHandler, &InterruptController);
 
// Enable non-critical exceptions
Xil_ExceptionEnable();
if ( Status != XST_SUCCESS ) {
return XST_FAILURE;
}
 
 
return XST_SUCCESS;
}
 
Thanks
Kavish
  • Sign in to reply
  • Cancel
  • drozwood90
    0 drozwood90 over 9 years ago

    Hi there,

    Which lwIP Echo project are you referring to?  There are quite a few out there.

    The AR you posted was using non-Vivado tools.  I would suggest you start with checking what you have against AR58942:
    http://www.xilinx.com/support/answers/58942.html

    That is specifically for Zynq 7000 and Vivado, which using the Block Design (BD) makes it really easy to do.

    As for tracking the issue itself, I think I would start with checking that somewhere in the project there isn't already an interrupt definition.  I do not know which project you are using, so can only try to help guide you with this.  Is it possible you are re-defining the interrupt on accident to not be the echo interrupt?

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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 © 2025 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