Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp32 bootloop with platform=espressif32 #329

Open
MichaelDvP opened this issue Sep 5, 2023 · 5 comments
Open

esp32 bootloop with platform=espressif32 #329

MichaelDvP opened this issue Sep 5, 2023 · 5 comments

Comments

@MichaelDvP
Copy link

With the new espressif 6.4.0 / framework-arduinoespressif32 3.20011 the esp32 bootloops with this message

rst:0x10 (RTCWDT_RTC_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:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4

I've tested with the plain code from here, set all features.ini to zero and also removed the LightStateSevice and LightMqttSettingsService, but still bootloop. -D CORE_DEBUG_LEVEL=5 does not give any other message.
I think it's something at initialisation so i moved the esp8266React to the setup funcion and it works.

This bootloops:

main.cpp:
#include <ESP8266React.h>
AsyncWebServer server(80);
ESP8266React esp8266React(&server);
ESP8266React * espReact;
void setup() {
  espReact->begin();
  server.begin();
}
void loop() {
  esp8266React.loop();
}

This works:

main.cpp:
#include <ESP8266React.h>
AsyncWebServer server(80);
ESP8266React * espReact;
void setup() {
  espReact = new ESP8266React(&server);
  espReact->begin();
  server.begin();
}
void loop() {
  espReact->loop();
}

Any idea what causes the bootloop?

@MichaelDvP
Copy link
Author

I've found the cause:
In WifiSettingsService move all WIFI.xxx to the begin() function and it works.
Should i make a PR?

@larsskj
Copy link

larsskj commented Feb 17, 2024

@MichaelDvP I would love to see an example of this - as a PR to this repo doesn't seem very realistic.

@larsskj
Copy link

larsskj commented Feb 17, 2024

Another workaround could be to downgrade the Espressif Arduino library.

I tried with

platform=espressif32@6.3.0

in platform.ini and everything worked again.

@kadharsh
Copy link

Another workaround could be to downgrade the Espressif Arduino library.

I tried with

platform=espressif32@6.3.0

in platform.ini and everything worked again.

Changing the Espressif library version fixed the issue, Thanks.

@SergioArrighi
Copy link

SergioArrighi commented Jun 25, 2024

I've found the cause: In WifiSettingsService move all WIFI.xxx to the begin() function and it works. Should i make a PR?

This worked, such an easy an important PR.
Thanks @MichaelDvP you saved my day!
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants