STM32WL I2C recovery after stop-2 sleep mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-04-19 3:46 AM
We have STM32WL working well on LoRa together with Teseo-liv3f Nucleo boards. We now need to have it to sleep for low power between tasks.
Our software is based on the LoRaWAN_AT_Slave example. In there we can allow everything to go into sleep mode 2. Hwever we find that after coming out of sleep mode the I2C bus used for the Teseo-liv3f remains in a busy state, the clk and data lines are both high so not busy, we have also tried a delay before access but still no go. Are there any issues with this?
- Labels:
-
I2C
-
STM32WL series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-07-16 6:15 AM
Hi @Darcy ,
you may find relevant info at:
Still in stopmode 2, the i2c Ip registers are not retained (e.g. registers value are lost) and must be reinitisialed at stop2 exit ( you can add your code here in stm32_lpm_if.c > PWR_ExitStopMode())
In sleep mode, every is retained and nothing has to be done at sleep exit
