Hi,
I'm developping a new application where the device normally is in low power (waiting button with an interrupt)
while(!gIsButtonSwitched)
{
__WFE();
}
the consumption here is 2uA (after the first reset of the board).
after pressing a button the device go in advertising:
ble_stack_init();
gap_params_init();
gatt_init();
services_init();
advertising_init();
conn_params_init();
advertising_start();
Here the consuption is correct.
when I press again the button I need to swicht off the advertising and I use the istruction:
sd_ble_gap_adv_stop(m_advertising.adv_handle);
and come back to wait the first button to repeat the sequence, but here the power comsuction is now about 800 uA.
Do I have to disable anything else in order to return to 2 uA?
Marco