Portenta H7: SPI in Interrupt Routine ?!

Hello,

does anyone ever tried to run SPI transaction within an ISR routine on the Portenta using SPI.useInterrupts() !?. Unfortunately, my code is crashing.

My approach:

On the M7 Core I am generating an trigger signal using one of the digital outputs.

On the M4 Core I registered an GPIO interrupt using "attachInterrupt(...)" within "setup()" function. Also there I configurated the SPI as shown in the examples but additionally I am using here the SPI.useInterrupt(...) function to execute SPI write functions within the registered GPIO interrupt.

Before I post any codes, I wanted to make sure if the presented approach is possible or not.

Thank you very much!

Best regards,

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.