cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 stopping a SPI TX transmission via DMA with a external GPIO trigger

YTagu.1
Associate II

Hi ST community,

I'm using a WiFi module, which receives data with SPI. The WiFi module has NORX pin, which indicates whether the module can accept the data or not. The data bits sent when NORX is set to high are discarded. So, when transmitting a SPI packet from STM32H7 to the module and NORX is asserted during the SPI transmission, the successive SPI bits are discarded at the module. To avoid this, STM32H7 has to stop the SPI transmission immediately after the NORX is asserted.

I'm sending data with SPI via DMA. Is there any way to stop the SPI transmission with a external GPIO trigger? Here, I assume that external GPIO trigger is NORX.

The STM32H7 runs by 280MHz clock. The speed of SPI is 10Mbits/sec. So the SPI transmission has to be stopped within 28 cycles.

Thanks in advance

0 REPLIES 0