Hello I would like to know when nrf51822 (SDK v12.3 with SD S130 ) advertising timeout and system goes to sleep , how could I retain the ram data so the MCU could work properly when it is woke up by other event? Thanks.
Hello I would like to know when nrf51822 (SDK v12.3 with SD S130 ) advertising timeout and system goes to sleep , how could I retain the ram data so the MCU could work properly when it is woke up by other event? Thanks.
Hi
When using the SoftDevice you should use the sd_power_ramon_set() function to access the RAMON register.
To enable RAM retention both in system ON and system OFF make sure to set both the OFFRAM0/1 fields and the ONRAM0/1 fields.
Best regards
Torbjørn Øvrebekk
Hi
Do you mean you changed the advertising event handler, or the ble_advertising.c file itself?
Changing the SDK libraries and drivers is not recommended if you can avoid it.
Also, when using the SoftDevice you should use sd_app_evt_wait(), rather than calling __WFE() directly.
Best regards
Hi
Do you mean you changed the advertising event handler, or the ble_advertising.c file itself?
Changing the SDK libraries and drivers is not recommended if you can avoid it.
Also, when using the SoftDevice you should use sd_app_evt_wait(), rather than calling __WFE() directly.
Best regards