2025-07-21 10:18 AM
I'm using an STM32U5 processor to communicate with a sensor over SPI, and I am unable to get the SPI transfer and reception to work while putting the device into STOP 0/1. The datasheet and reference manual state that this is possible with SPI1 in STOP 0/1, but the device never wakes up and the transfer doesn't complete. I am using SPI1 and HAL_SPI_TransmitReceive_DMA, along with linked list DMA mode. I have gotten the transfer to work successfully in SLEEP, with the device waking after all transfers are complete, but it does not work when putting the device into STOP 0 or STOP 1 mode. Are there any other bits that need to be set to enable STOP mode functionality with SPI1? I am using MSIK to clock the SPI, and STOP mode is working for other parts of the application (RTC, EXTI). Thank you.