I was under the impression that the only suitable sleep mode in Chibios is the normal sleep mode which is supposed to be what happens with a wfi instruction. However, there is clearly something I am not doing to prepare because wfi is not causing the processor to sleep -- but what might that be ?
I do use standby successfully, but that forces a restart. I don't think any of the stop modes will work without some significant enabling/disabling of things.
It depends on the specific STM32, exiting from stop modes requires reinitialization of clocks, entering stop mode requires setting up some registers before executing WFI, you need to search this on the STM32 manual.