Page 1 of 1

ESP32 Internal RTC

Posted: Wed Feb 17, 2021 6:06 pm
by fran748
Hello. I have a question about the internal RTC of the ESP32.
Firstly, I am using the ESP32-C3-DevKitC-02 to do my tests. I need a RTC to record the different events that I am measuring, so I am using an external RTC called DS3234. However, I would like to perform tests with the internal RTC of the ESP32 to check its validity.
Can anyone provide me with any documents about the internal RTC? For example, the functions in arduino to configure, set and get the time of this RTC.
I would like to know if there is any similar information such as the functions for the esp32 timers (https://github.com/espressif/arduino-es ... #L112-L117)

Re: ESP32 Internal RTC

Posted: Wed Feb 24, 2021 9:48 pm
by blackeneth
You can find the low level RTC functions in the "rtc.h" library file; on my system it is located at
\Arduino\hardware\espressif\esp32\tools\sdk\include\soc\soc\rtc.h

Don't get confused with the other rtc.h that is located at
\Arduino\hardware\espressif\esp32\tools\sdk\include\esp32\rom\rtc.h

Re: ESP32 Internal RTC

Posted: Thu Feb 25, 2021 9:06 am
by fran748
Thanks