-
Notifications
You must be signed in to change notification settings - Fork 17
issue loading ntp time settings from esp32 . #257
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
Comments
Reproduces for me:
|
Ohhh, yes i forgot that part in my issue. BTW. this snapshot works fine on a local esp32 |
I switched the "time.h" lib to the "TimeLib.h" and that seems to work properly. Although some looks very slow. Not sure of that is the simulator or my code: when you want to close this issue, @urish , then that is fine by me. |
Thanks for the update! This one doesn't currently compile to me, perhaps you haven't saved the most recent version? Also, let's keep the issue open, as I want to investigate why this crashed the simulated ESP32. Do you still have the original code that caused the crash? |
Based on the original description above I made this code to reproduce the crash. It crashes on both Chrome and Safari. https://wokwi.com/arduino/projects/320004099075474004 It waits for user input so press enter in serial field to progress to crash. It crashes on this line: This is the console output:
|
tried to load in
|
First of all - thank you! The Web version of GDB does not support the ESP32. The only way to use GDB with the ESP32 simulator is to install the ESP32 GDB locally and use the wokwi-gdbserver bridge. But then you have to get the ELF file yourself, and it's a pretty complex to set up. If you have some experience with building things on Linux and are up to the challenge, I can send you some pointers on how to try to compile the ESP32 GDB to run in the browser. It might be as simple as applying the ESP32 patches over the existing setup, or as complex as fighting strange dependency issues and whatnot. |
I may take you up on getting your notes on how to do that but I think it may be a little bit beyond what I have time to sort out at the moment. Just trying to help out with low-hanging fruit where I can. |
Totally understandable. If you do want to give it a go at some point, #258 has some pointers |
Fixed! Thanks again @yepher for coming up with a quick reproduction example. Here's the output after fixing the bug: |
Describe the bug
I try to get the current date/time using the time lib. But the esp crashes as soon it set it up.
To Reproduce
See the following code:
https://wokwi.com/arduino/projects/319957381134942802
Expected behavior
that the esp32 runs without a auto Abort.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: