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

With ESP32 core 3.1.0 NTP.begin() restarts the MCU #56

Open
ednieuw opened this issue Jan 2, 2025 · 4 comments
Open

With ESP32 core 3.1.0 NTP.begin() restarts the MCU #56

ednieuw opened this issue Jan 2, 2025 · 4 comments

Comments

@ednieuw
Copy link

ednieuw commented Jan 2, 2025

FYI
On a Arduino Nano ESP32 NTP.begin(); restarts the Nano when compiling with Espressif ESP32 core 3.1.0
With core 3.0.7 there is no issue

@ednieuw
Copy link
Author

ednieuw commented Jan 3, 2025

Has probably something to do with the WIFI connection in 3.1.

@ednieuw ednieuw closed this as completed Jan 3, 2025
@ednieuw ednieuw reopened this Jan 21, 2025
@ednieuw
Copy link
Author

ednieuw commented Jan 21, 2025

Tried this example sketch with core 3.1.1 but it crashes the MCU
No idea were to look. A
As mentioned above with core ESP32 3.0.7 there were no problems

`
#include <Arduino.h>
#include <ESPNtpClient.h>
#include <WiFi.h>

#define SHOW_TIME_PERIOD 1000

void setup() {
Serial.begin (115200);
Serial.println ();
WiFi.begin ("FRITZ!Box", "mysecretpwd");
NTP.setTimeZone (TZ_Etc_UTC);
NTP.begin ();
}

void loop() {
static int last = 0;

if ((millis () - last) >= SHOW_TIME_PERIOD) {
    last = millis ();
    Serial.println (NTP.getTimeDateStringUs ());
}

}

`

@ednieuw
Copy link
Author

ednieuw commented Jan 25, 2025

https://github.com/espressif/arduino-esp32/issues/10902#issuecomment-2613996805

The issue comment was:
The network part in core 3.1.x has been refactored. The NTP lib needs to be changed to work with these changes.

@Nourbakhsh-Rad
Copy link

I have the same problem!

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

2 participants