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

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11486#discussion_r329766726">tests/periph_backup_ram/main.c</a>:</p>
<pre style='color:#555'>> +
+    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?");
+    }
+
+    printf("counter: %d\n", ++counter);
+    counter_noinit = counter;
+
+    /* Some tools have trouble flashing MCUs in deep sleep.
+     * Wait a bit to make re-flashing / debugging easier.
+     */
+    xtimer_sleep(3);
</pre>
<blockquote>
<p>you're suppose to see the counter increments by one every second</p>
</blockquote>
<p>Says who? <g-emoji class="g-emoji" alias="wink" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f609.png">😉</g-emoji><br>
I've added some output to clarify the delay periods.</p>
<p>It's really annoying when you have OpenOCD and your MCU enters deep sleep with no delay - there is no way to re-flash it. (If you're lucky you have JLink or edbg. But I'd rather save the unsuspecting Raspberry Pi GPIO users the cursing.)</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=ABE7WYCT6XMNUAFNZ4IKAXTQMJNFRA5CNFSM4HKVC6W2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCGMMQQY#discussion_r329766726">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYGK45JSZ45WLZUWQBLQMJNFRANCNFSM4HKVC6WQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYCG6IZPGFBV3BDJWWDQMJNFRA5CNFSM4HKVC6W2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCGMMQQY.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=ABE7WYCT6XMNUAFNZ4IKAXTQMJNFRA5CNFSM4HKVC6W2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCGMMQQY#discussion_r329766726",
"url": "https://github.com/RIOT-OS/RIOT/pull/11486?email_source=notifications\u0026email_token=ABE7WYCT6XMNUAFNZ4IKAXTQMJNFRA5CNFSM4HKVC6W2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCGMMQQY#discussion_r329766726",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>