Ok, got it.
Actually, I have mentioned before that you can disable CPU registers retention in PD even if you are using RTOS, I have discussed this with software team.
Or you can have a try as below:
//Before enter power down mode, please check if ble module allowed to enter power dowm.
if(BLE_get_sleep_mode() < kPmPowerDown0)
{
// you can print out some logs here
// return to run freetos.
}
else
{
//enter power down mode here
}
I don't have your source code, I want to know where/when will qn9080 enter power down in your source? In idle task?
Another question is that does QN9080 enter power down during advertising event or connection event?
As you know, in our SDK BLE examples, QN9080 will always enter power down if there is no CPU loading, for example the time duration between 2 davertising.
I'm thinking about that you are managing the power mode manually, only after advertising stopped, then you enter power down, is it?
Thanks