Bootloader -> App

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Bootloader -> App

Postby fly135 » Mon Sep 24, 2018 10:18 pm

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

Who is online

Users browsing this forum: Bing [Bot], cdollar and 103 guests