When entering deep sleep, I want to put Bluetooth to sleep, and then turn it back on when waking up. I only know there is something like lpa, but it seems it also requires the latest SDK to call.
This API: HAL_LPAON_Sleep
does not require the latest SDK
How to activate Bluetooth after waking up?
If you are using the Bluetooth small core to run code normally, do not use the HAL_LPAON_Sleep API. This API is generally used in scenarios where the small core is not used, to put the small core to sleep to reduce power consumption.
When entering deep sleep, turn off Bluetooth broadcasting; when waking up, turn on Bluetooth broadcasting.
How to turn off Bluetooth? See this post: How to properly turn off BLE Bluetooth on LB52x? - Q&A - SiFli BBS