Hi,
I have been doing some testing with the hibernation function on the DA14682 and the DA14681.
I have been using the ble-adv example as specified in the power measurement document. I have changed the sleep mode to "pm_mode_hibernation".
I am measuring a current of around 192uA when the device is in hibernate on a DA14681 basic dev kit.
On our production PCB with a DA14682 I am measuring a sleep current of about 200uA.
It appears to me that something isn't going to sleep fully, the flash maybe? Any ideas?
Thanks in advance.
Device:
Hi point85,
In general, in order to put the system into hibernation mode you should make sure that :
Any of the above statements will prevent the system to hibernate and as a result a cold boot will take place. You can do the following modifications in ble_peripheral_task.c of ble_peripheral example.
1.建立一个OS_TIMER()以阻止dvertising after 15 seconds:
2. Start the timer in ble_peripheral_task:
3. Upon the timer expiration, the advertising will stop, so the handle_evt_gap_adv_completed() will be triggered and the system will go into hibernation.
Thanks, PM_Dialog