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
      •  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 & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Avnet Boards General Interrupt stops working
  • 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 3 replies
  • Subscribers 347 subscribers
  • Views 426 views
  • Users 0 members are here
Related

Interrupt stops working

johnnyissa
johnnyissa over 5 years ago

I have a Avnet Ultrazed starter kit and I am running into an that I need help with.

I am using Vivado /SDK  2019.1 and Petlainux 2019.1. The Vivado project include a

1. AXI-GPIO with the interrupt enabled

2. concat IP where the interrupt from GPIO is connected

3. AXI-intc - the output from the concat IP is connected to the INTC input and the IRQ is connected to thepl_ps_irq0

 

 

I created a Petalinux build using this hardware with the following:

• in the config I enabled UIO support

• added uio-generic in the device tree for that GPIO

• added the uio_pdrv_genirq.of_id=generic-uio to the bootargs

I build the project and it boots fine, I have the GPIO pin connected to a data ready line from a device. I created a C++ program that uses the UIO code to wait on an interrupt from that I run the program in a couple of scenarios for testing.The program makes sure at exit to disable GIER and IP IER for the GPIO and acknowledge any interrupts left over by writing 1 to IP ISR.

 

 

Scenario 1:

• I turn off the device

• start the program which waits for interrupt as expected

• start the device

• In normal operation, everything works as expected where the code catches the interrupt and process the data.

 

 

Scenario 2:

• Same as scenario 1

• stop the program

• power off the device

• Power the device

• Restart the program, everything is working correctly

 

 

Scenario 3

• Same as scenario 1

• Power off the device while the program is running. When I turn the device off, there is a residual power that cause noise on the GPIO pin.

• I stop the program.

• I power the device on

• Restart the program, I don't receive any interrupts and I can't get it to work again till I restart.

 

 

My guess is the noise is causing a lot of interrupts that cause the issue.

 

 

This is what I tried so far

• Remove the AXI-INTC and connected directly to the PL_PS_IRQ - same issue

• I looked at the AXI GPIO register and all the interrupts are setup as expected

• I checked in the AXI-INTC and the interrupt is enabled for the GPIO

 

 

In the final design, I don’t think this might be an issue but I would like to know if there is a way to recover so that I don't have to restart.

 

 

Thanks

 

 

Johnny

Attachments:
image
  • Sign in to reply
  • Cancel
  • drozwood90
    0 drozwood90 over 5 years ago

    Hi there,

     

    Which UltraZed kit are you talking about?

    How long are you holding the device off for?

     

    Are you getting the blue done LED after the reboot?

     

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • johnnyissa
    0 johnnyissa over 5 years ago in reply to drozwood90

    The ultrazed kit is uz3eg with iocc board

    The blue led is on

    the device is off for a long time

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • drozwood90
    0 drozwood90 over 5 years ago in reply to johnnyissa

    Hi there,

     

    Sorry to be a pain, but how long is a long time?

    And if it is in this situation, are you able to test pushing the reset button on the carrier before loading your board?  It just seems really strange and feels like the PL is loading up in an unknown state.

     

    --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