Mark D.

Results comments of Mark D.

also I tried various uart configs... serial gps connected, nothing connected, and long wires connected to nothing. I never could reproduce it.

linux ubuntu and usb is through a powered usb hub (esp32 powered by hub).

Also tried on a non-powered usb port which a usb voltmeter shows supply voltage lagging to 4.9V... still works here lol, I'm stumped.

Its set in tools/sdk/include/lwip/apps/sntp/sntp_opts.h and default is 1 hour. An esp32 clock here has been up for over a month and it keeps to within about a second compared to...

Something to test would be using known reachable ntp servers instead of the pool names. I'm not sure how lwip handles sntp dns lookups as far as whether it resolves...

The #defines in those includes are cpp conditionals for files that are shipped as precompiled static libraries, which means recompiling the sdk to affect any changes.

Not without compiling lwip, however it will work if you use arduino as component of esp-idf. I assume youre looking for something like this... sntp_retry: Next request will be sent...

> You may even be able to compile a debugging version of liblwip.a on arduino as component and copy it to the proper place in arduino-ide and gain a debugging...

When a project is built under arduino-as-component of esp-idf, it compiles its own liblwip.a. This allows making changes such as those you made to the include files (sntp_opts.h) and results...

@CelliesProjects did you edit the include sntp_opts.h like you did in arduino-ide? Its in a different place... components/lwip/include/lwip/apps/sntp/sntp_opts.h