We was also thinking about the first method.
----------------------------------------
With interrupts, it was possible to do what you say because we was able to trigger on level change (both)
Cupcake_1-1684914244810.png
But we want to do it with SDMA to prevent high interrupt usage in the cortex-m7, and also because interrupts are freezing the A53 (no logs to understand the problem) but the SDMA can only be triggered by "counter event" (instead of input capture):
Cupcake_0-1684914170240.png
----------------------------------------
Idealy if this is possible we are thinking:
1. Connecting a SDMAx_EXT_EVENTn to the radio signal, and another GPIO to the same radio signal
2. In the DMA process, if it can be triggered by both edges on SDMAx_EXT_EVENTn, then read the GPIO to know the "level"
----------------------------------------
About the second method, the specifications are really not clear. Did you know what are the possible triggers for DMA with a SDMAx_EXT_EVENTn pin ? Where is it explained in the reference manual ?
I don't find any mentions about what we can do with this, for exemple can we trigger on falling edge, rising edge, both ?
I understand that SDMAx_EXT_EVENTn is not GPIO, but where is it explained what it is ?
----------------------------------------
Now in any cases we need to use custom scripts to make it working with DMA, I'm looking for an example of SDMA custom script usage in cortex-m7.
----------------------------------------
Thanks for help