I am having trouble in setting up the extended sleep mode (without OPT copy). We are using custom 14586 board.
In arch_main.c, in the procedure int main (void) (line 139)
if I replace sleep_mode = rwip_power_down(); (line 176) with sleep_mode = mode_active; It transmit the data continuously every one second without problem.
But if I leave sleep_mode = rwip_power_down() the packet does not get updated. After initialisation, the packet is updated once and then it transmit the same packet every one second.
Adv_data_update_timer_cb is scheduled using APP_ADV_DATA_UPDATE_TO is not changed and left as 100
CFG_MAX_SLEEP_DURATION_PERIODIC_WAKEUP_MS is left at 500.
Tried values 687.5 and 3000 for .intv_min and .intv_max
app_default_sleep_mode is set as ARCH_EXT_SLEEP_ON
all arch_set_extended_sleep calls are called with parameter false (arch_set_extended_sleep(false) ).
SysCLK changed to 16MHz.
Timer 0 and systick used for setting certain values of MNF_DATA.
I have two problems,
1) The packet does not get updated
2) Looking at the current level on smartsnippets and from test point 6 of the development board, I don't think it is going into sleep mode. (On the CRO the base voltage is 100mv and when transmit it goes to 400mV.
Can I please get some help on this please? I started the project from your ble_app_sleepmode and modified to suit our need.