Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

OMAPL138 GPIO Interrupt and INTSTAT empty

$
0
0

Hello to everyone!

I am running into a problem with GPIO bank interrupt. I am writing a function to discern the source of a bank interrupt between the enabled I/O, I learned that INSTAT registers should be the key of the problem but when I test it I always find it empty.

For example, I have enabled an interrupt on the falling edge of GP3[9], I should have enabled all the connected registers, in fact my callback is correctly called, but INTSTAT23 is always read as 0x0000 0000.

I noticed that inspecting these registers with the emulator (with a breakpoint on the interrupt callback) results in a fixed 0 value. However even copying the register value in the code and reading the copied value do not allow me to see the flag.

Is it possible that something is automatically cleaning the flag in INSTAT register?

Note that:

  • On ARM side Linux is running and most of the pins of bank3 are configured for EMIFA use.
  • On DSP DSPBIOS with DSPLINK is running.
  • I use the DSPBIOS API for interrupt handling.
  • I use StarterWare wrapper for GPIO configurations (directions, set, enable interrupts )
  • GPIO bank3 interrupt is mapped on HW_INT8 (far away from DSPLINK or other used interrupts )
  • With emulator, enabling randomly some others GP3 pin I have seen INTSTAT23 with some flags set, so something seems working.

Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>