ESP32-pico-d4 bootloader flash after internal memory crash
Posted: Sat May 02, 2020 6:29 pm
Hello everyone,
On some ESP32-Pico-D4 I started to try use the internal SPI Flash Memory of 4MB.
I'm using Arduino IDE 1.8.8 and the Espressif preferences library.
After changing some variable and values in my Memory function, suddenly cannot more use the Memory, it always crash and reboot
this on the serial monitor
"***ERROR*** A stack overflow in task loopTask has been detected.
abort() was called at PC 0x4008b900 on core 1
Backtrace: 0x4008b6bc:0x3ffaf3f0 0x4008b8e9:0x3ffaf410 0x4008b900:0x3ffaf430 0x40088b74:0x3ffaf450 0x4008a69c:0x3ffaf470 0x4008a652:0xfefefefe
Rebooting..."
If I don't use the memory the rest of the code and CPU works fine, but I need the memory..
uploading other previous or new codes doesn't solve the problem, it seems that the memory is damaged, but for me it's strange because I only uploaded some code..
So I searched a way to reset the Pico to the factory state (like a flash bootloader file), but only found the "Flash Download Tools (ESP8266 & ESP32 & ESP32-S2)" from Espressif which hasn't any indication for the Pico-D4 version and I'm not sure if I can use it.
Does anyway know if and how it's possible to reset to the Pico to factory, or reset the memory?
unfortunately the documentation doesn't explain much more.
Thanks
Dan
On some ESP32-Pico-D4 I started to try use the internal SPI Flash Memory of 4MB.
I'm using Arduino IDE 1.8.8 and the Espressif preferences library.
After changing some variable and values in my Memory function, suddenly cannot more use the Memory, it always crash and reboot
this on the serial monitor
"***ERROR*** A stack overflow in task loopTask has been detected.
abort() was called at PC 0x4008b900 on core 1
Backtrace: 0x4008b6bc:0x3ffaf3f0 0x4008b8e9:0x3ffaf410 0x4008b900:0x3ffaf430 0x40088b74:0x3ffaf450 0x4008a69c:0x3ffaf470 0x4008a652:0xfefefefe
Rebooting..."
If I don't use the memory the rest of the code and CPU works fine, but I need the memory..
uploading other previous or new codes doesn't solve the problem, it seems that the memory is damaged, but for me it's strange because I only uploaded some code..
So I searched a way to reset the Pico to the factory state (like a flash bootloader file), but only found the "Flash Download Tools (ESP8266 & ESP32 & ESP32-S2)" from Espressif which hasn't any indication for the Pico-D4 version and I'm not sure if I can use it.
Does anyway know if and how it's possible to reset to the Pico to factory, or reset the memory?
unfortunately the documentation doesn't explain much more.
Thanks
Dan