2025-07-07 4:58 AM - edited 2025-07-07 4:59 AM
Hi,
I am connecting ESP32 with STM32G474RET6 Nucleo board via SPI. I have configured SPI in DMA mode to transfer data. With NSS pin enabled for chip select I can see the pin remains low always during transmission of data and also in idle. So that I could not communicate with ESP32. Because of that I have to do manual GPIO write high and low in the code and that works. How to automate this NSS pin (chip select) to work, Kindly help me with this.
Thanks in Advance
2025-07-07 6:54 AM
Pin 'd stay low as long as SPI active. Use I2S instead, right/left channel line is your NSS in this case.
2025-07-07 7:02 AM
@MasterT wrote:Pin 'd stay low as long as SPI active. Use I2S instead, right/left channel line is your NSS in this case.
Indeed.
@BrindhaP this is documented in the Reference Manual:
via: https://www.st.com/en/microcontrollers-microprocessors/stm32g474re.html#documentation
2025-07-07 7:13 AM
Hi,
i have a SPI data DMA transfer between ESP and STM32 also, working fine.
Just : the ESP is SPI master, the STM32 is slave; then NSS (hardware) is input and this works as expected.