<p><b>@benpicco</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11486#discussion_r329767049">tests/periph_backup_ram/main.c</a>:</p>
<pre style='color:#555'>> +{
+    /* We keep a copy of counter in the .noinit section (normal RAM).
+     * In the deepest sleep normal RAM is not retained, so if it matches
+     * counter anyway after wakeup, we did not sleep properly.
+     */
+    static int counter_noinit __attribute__((section(".noinit")));
+    static int counter __attribute__((section(".backup.bss")));
+
+    if (counter == 0) {
+        puts("\nBackup RAM test\n");
+        printf("This test will increment the counter by 1, "
+               "then enter deep sleep for %ds\n", SLEEP_SEC);
+    } else if (counter_noinit == counter) {
+        puts("WARNING: non-backup memory retained - did we really enter deep sleep?");
+    }
+
</pre>
<p>I think we should at least once access that memory to make sure it doesn't crash & burn when doing so.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11486?email_source=notifications&email_token=ABE7WYGZCK6OJLSVGI4W2ELQMJNIXA5CNFSM4HKVC6W2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCGMMT3A#discussion_r329767049">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYFWXELFBZVMYGXUELTQMJNIXANCNFSM4HKVC6WQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYFXQPVIDM76ZFWM4FTQMJNIXA5CNFSM4HKVC6W2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCGMMT3A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11486?email_source=notifications\u0026email_token=ABE7WYGZCK6OJLSVGI4W2ELQMJNIXA5CNFSM4HKVC6W2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCGMMT3A#discussion_r329767049",
"url": "https://github.com/RIOT-OS/RIOT/pull/11486?email_source=notifications\u0026email_token=ABE7WYGZCK6OJLSVGI4W2ELQMJNIXA5CNFSM4HKVC6W2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCGMMT3A#discussion_r329767049",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>