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
Thank. I am modifing the ble_advertising.c itself.
Understood, I am new to NRF51 development.
Could you advise where should I modify on application level if i do not want the device go to deep sleep after advertising timeout?
Thank. I am modifing the ble_advertising.c itself.
Understood, I am new to NRF51 development.
Could you advise where should I modify on application level if i do not want the device go to deep sleep after advertising timeout?