I want to do a factory reset on my Adafruit HUZZAH32 ESP32 Feather Board as it is stuck in a repeating startup loop with a flash config error.
I see the steps for a resetting a different Adafruit ESP32-S3 board and assumed they should be the same when using the WebSerial ESPTool method.
Can you tell me where I can download the correct factory reset and bootloader file for the HUZZAH32 ESP32 Feather?
#Factory reset of Huzzah ESP32
1 messages · Page 1 of 1 (latest)
hi, there isn't really such a thing, you should just be able to program it with the Arduino IDE or esptool, as the commands go through the serial chip that is responsible for putting the board in bootloader mode.
Programming thru the IDE won't work as the board is stuck in a startup loop. I can get the ESPtool to control the board and plan on using it to clear the memory, but it looks like I need to add back code as the second step in a reset...(based on ESP32-S2 directions)
Link to directions for S2:
https://learn.adafruit.com/adafruit-esp32-s2-feather/factory-reset
won't work or didn't work ? did you try ?
the ESP32 has nothing to do with the S2 or the S3, they use native USB and because of that the 2nd stage bootloader will not work if the board is crashed
the ESP32 of the Huzzah works through an external serial chip, which puts the board in bootloader mode when uploading
you can erase the board with esptool, that is sometimes necessary when flashing repeatedly fails or behaves weirdly
are you are encountering errors when trying to flash the board ?
I just flashed the board and still get the same errors on the console. I respectfully disagree with you- I believe after I have cleared the memory I need to replace the low level code on the board. My problem isn't a bad bootloader, I'm getting this error "Core dump flash config is corrupted!"
what are you flashing to the board ?
Let me rephrase- I erased the board. I cannot flash to the board as it's stuck in a stratup loop.
how are you trying to flash the board ?
you say "I cannot flash the board", what steps do you take to flash the board, and what errors are you seeing ?
I use either the Arduino IDE or Visual Micro running under Visual Studio. I build and upload the code. After that, opening the console on either IDE displays the same errors and the program does not function. Here's the error:
E (382) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
Rebooting...
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
Guru Meditation Error: Core 0 panic'ed (IntegerDivideByZero). Exception was unhandled.
so the upload itself proceeds without error ?
yup
are you using this board ?
yup
what board have you selected in the Arduino IDE ?
"Adafruit ESP32 Feather"
are you using the latest version of the ESP32 support in Arduino ? (2.0.6 I think)
How do I confirm that?
Yup. 2.0.6 installed
have you tried flashing something like the blink example ?
(examples > basics > blink)
yes, that seems to work
so it would be something your code does or a library it pulls in
I would try disabling parts of the code separately to isolate the cause, and maybe share your code in the Arduino channel (be careful if there are credentials in it), although this is not the best time of the day to get eyes on it