lpcware

M0_SGPIO_IRQHandler query

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by JohnR on Tue Sep 11 14:09:22 MST 2012
Hi,

I have developed a SGPIO interface on M4 to talk to an SPI-based ADC, using the example in AN11210 cut down to a single interface rather than the original dual. Works fine but I am now trying to get SGPIO working from M0, as I would like to use M0 as the interface, leaving M4 to do the subsequent data processing/display etc.

So far I have not been able get M0_SGPIO_IRQHandler to respond. I can generate the SPI drive waveform from code in M0 that drives the ADC and I can see the serial data from it, exactly the same as the earlier M4 version. But the handler never gets called?

In the M0 main I call NVIC_EnableIRQ(M0_SGPIO_IRQn). Are there any other changes needed?

Thanks for any help.

John.

Outcomes