Jump to content
  • 0

Arty a7 gpio interrupt not triggered when using rtos


hdx

Question

Hi

I am having problem with gpio interrupts on arty a7 when using rtos. I have mapped a pin to a gpio ip to trigger an interrupt on pin IO7 when it is drawn high. When I run the code, the initialization succeeds without any problem and I can see the first character being printed out inside the interrupt and then freeze. If I then rerun the code, without programming the FPGA with bootloop, the interrupt doesn't trigger and get stuck at microblaze_enable_interrupts();

If I run my code in a non rtos application it runs fine and triggers the interrupt without any problems. Would appreciate any help I could get to get the rtos application to run with gpio interrupt

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Hello @Ana-Maria Balas,

Thank you, that fixed the problem with the with the code halting and not continuing. 

Regarding the second problem with GPIO interrupt not triggering with FreeRTOS. It seems that I needed to enable also interrupts in Freertos with the following commands

vPortEnableInterrupt( XPAR_MICROBLAZE_0_AXI_INTC_AXI_GPIO_0_IP2INTC_IRPT_INTR );

After the software is triggering interrupts everytime the pin is driven high.

Thank you for the help!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...