Search found 57 matches
- Sat Jul 16, 2022 1:14 pm
- Forum: ESP-IDF
- Topic: System time corrupted across reboots
- Replies: 11
- Views: 6633
Re: System time corrupted across reboots
That is another topic about the same problem: https://esp32.com/viewtopic.php?t=19504 It seems that on "freshly powered on" (<1 day) devices the issue is indeed not very obvious. Edit: I'll try to whip up a very simple example which automatically reboots once per hour or so. The main problem is, my ...
- Thu Jul 14, 2022 11:05 pm
- Forum: ESP-IDF
- Topic: System time corrupted across reboots
- Replies: 11
- Views: 6633
Re: System time corrupted across reboots
I am willing to provide a minimum code example, but I didn't have success in doing so yet... It might be another mechanism in my application which causes this, but I have no idea which one, despite commenting out almost everything one by one. I am redirecting the log into a (noinit) buffer which I a...
- Wed Jul 13, 2022 11:05 am
- Forum: ESP-IDF
- Topic: Not able to redirect crash report using esp_log_set_vprintf
- Replies: 3
- Views: 1802
Not able to redirect crash report using esp_log_set_vprintf
On the ESP8266 we were able to redirect console output using os_install_putc1() and we could dump any byte that normally went over the uart into a buffer, which in turn could be polled over the network. That worked and helped perfectly for years! On the ESP32 we have esp_log_set_vprintf(), but that ...
- Tue Jul 12, 2022 10:22 pm
- Forum: ESP-IDF
- Topic: System time corrupted across reboots
- Replies: 11
- Views: 6633
Re: System time corrupted across reboots
I found the very old thread https://www.esp32.com/viewtopic.php?t=7544 indicating the same problem. There's the recommendation to change CONFIG_NEWLIB_TIME_SYSCALL to only rtc as the Timer for gettimeofday. But that does not help either. I wonder why the behavior differs from the documentation here....
- Mon Jul 11, 2022 9:11 am
- Forum: ESP-IDF
- Topic: System time corrupted across reboots
- Replies: 11
- Views: 6633
Re: System time corrupted across reboots
I tried calling esp_sync_counters_rtc_and_frc() just before esp_restart(), but that didn't help.
- Sun Jul 10, 2022 6:34 pm
- Forum: ESP-IDF
- Topic: System time corrupted across reboots
- Replies: 11
- Views: 6633
Re: System time corrupted across reboots
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/system_time.html?highlight=across In menuconfig I chose the option "RTC and high-resolution timer (default)", so time should persist. But it doesn't. I wonder if others have more experience. This is my second week with ...
- Fri Jul 08, 2022 5:15 pm
- Forum: ESP-IDF
- Topic: System time corrupted across reboots
- Replies: 11
- Views: 6633
System time corrupted across reboots
Hi, my plan is to "rescue" the system time across a reboot (crash, firmware update, etc.). I know I could rely on NTP, but I'd like to have this feature as a fall back solution anyways. My understanding is that there is an RTC running and that the RTC memory survives a reboot. In theory. However I n...