• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Will reset reason always be reset caused by Brownout; when starting sketch?

Q&A Forum › Will reset reason always be reset caused by Brownout; when starting sketch?
0 Vote Up Vote Down
William Lucid asked 3 years ago

I log WIFI and restart events in my project.   I always get the same reset reason when initially starting the sketch or plugging in power.  Is this to be expected?  Only occurs in the two cases; in normal operation.

This sketch demonstrates the reset reason.  Plugging in power or pressing reset produces “Vbat power on reset.”  When watchdog event occurs; result is “Software reset CPU.”

Watchdog_Reset_Reason.ino

William

Question Tags: ESP32, Reset reason, Watchdog
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Yes. You’re expected to get the same reason when pressing the RST button, starting the sketch, or plugging power.
Regards,
SAra

0 Vote Up Vote Down
William Lucid answered 3 years ago

Thank you Sara for confirming.
Here is  sample of what I have so far:
WiFi and Resets of project
I was going to add logging the start of the server; however, it seems to only get repeated with a reset reason  Logging server start looks useless to me now.
William
 

0 Vote Up Vote Down
William Lucid answered 3 years ago

Developed a way to separate ESP32 Start events and Brownout events:
Logging WIFIClientEvents: ESP Start, Brownout, Watchdog, WIFI Connect and WIFI Disconnect
 
William

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi William.
That’s great!
Thank you so much for sharing.
I need to take some time to analyse your code and maybe create a tutorial about that.
Regard,s
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.