Search found 4 matches
- Mon Oct 21, 2024 8:56 pm
- Forum: Report Bugs
- Topic: Voltage measuring function gives incorrect result if calling from a component
- Replies: 0
- Views: 1197
Voltage measuring function gives incorrect result if calling from a component
I use the same function, similar to one in ESP example esp_battery_reading_single to measure the ESP board battery voltage. It resides in a separate component. I call this function directly from my project main() function and from a second separate component C file function, called from main(). If c...
- Mon Oct 07, 2024 6:15 am
- Forum: Report Bugs
- Topic: ESP32 changes placed in RTC memory variables after returning from deep sleep
- Replies: 4
- Views: 2175
Re: ESP32 changes placed in RTC memory variables after returning from deep sleep
Thank you. You were right. I had a subtle small bug in allocating memory for the structure in my main.c code.
Now everything with ESP32 deep sleep works as expected.
Now everything with ESP32 deep sleep works as expected.
- Wed Oct 02, 2024 9:21 pm
- Forum: Report Bugs
- Topic: ESP32 changes placed in RTC memory variables after returning from deep sleep
- Replies: 4
- Views: 2175
Re: ESP32 changes placed in RTC memory variables after returning from deep sleep
Yes, I missed to mention that I have defined two RTC_DATA_ATTR structures in two separate source files: main.c and the second with strange behavior, in a separate .c file. I observed earlier that the sequence of placing variables marked with RTC_DATA_ATTR is important for the compiler. For example, ...
- Wed Oct 02, 2024 3:27 am
- Forum: Report Bugs
- Topic: ESP32 changes placed in RTC memory variables after returning from deep sleep
- Replies: 4
- Views: 2175
ESP32 changes placed in RTC memory variables after returning from deep sleep
Dear colleagues, I will appreciate you help in solving the following problem I encounter when programming my ESP32 Lolin32 board. I have defined a structure in RTC memory for keeping calculated up to six time offsets between SNTP and RTC time: typedef struct { struct timeval offset_t[ESP_MAX_TIMESYN...