nRF51 SDK - S210 SoftDevice
|
The RAM Retention Example shows RAM retention mode usage and verification. It configures the system for RAM retention and then triggers System OFF. GPIO pin 7 (active low) wakes up the system. It then checks if the RAM state is conserved by verifying that the value written before going to System OFF is the same.
-------------- | RESET | -------------- | --------------- | Configure | | GPIO | --------------- | READ GPREGRET Register | --------------------- NO <--| SYSTEM_OFF_RESET? |--> YES | --------------------- | | | ------------------------- --------------------- | Write to GPREGRET | | Read Loop count/ | | test word + loop_count |<- ---| MAX reached? |--->NO ------------------------- | | --------------------- | | | | ------------------------ ---------------- ------------------------ | YES | Verify RAM retention? |-->FAILURE-->| Loop forever | | Enable RAM RETENTION | | | ------------------------ ---------------- ------------------------ | STOP | ^ | | SUCCESS | ------------------------ | ------------- | | | WRITE_TEST_BYTE_TO_RAM | --True---| ++Loop < 6? |<-------- | ------------------------ ------------- | | | | -------------------- False | | Trigger System OFF | | | -------------------- ----------------------------------------------------
Instructions on how to set up the nRFgo Motherboard: nRFgo Motherboard Setup (nRF6310).
LED assignments:
Button assignments:
The RAM Retention Example Application can be tested as follows: