Page 1 of 1

Bootloader -> App

Posted: Mon Sep 24, 2018 10:18 pm
by fly135
In my app I'm using RESET_REASON rtc_get_reset_reason(int cpu_no); to see what the reset reason is. I'd like to detect a button press during the bootloader operation, but not just switch to factory partition boot. I'd like to set a parameter for my app to recognize to reset to factory defaults. I suppose I could just read the button GPIO as the very first thing I do in the app. That way I could reset to default before calling any functions that might crash the app. But I'm also like to understand how to let the bootloader communicate with the app.

So I guess I'm asking... how does the bootloader share a variable with the app?

John A