Search found 4 matches
- Sat Jun 11, 2022 2:09 am
- Forum: General Discussion
- Topic: DS1307 RTC breaks only when called from a thread? (ESP32 / Coding)
- Replies: 5
- Views: 2483
Re: DS1307 RTC breaks only when called from a thread? (ESP32 / Coding)
You probably only need to call it once. Or even never, if you don't use the resulting square wave signal. I don't. Thanks for all your guidance! I'm going to assume this solved. I actually ended up using one xTaskCreate() and the loop(). My project also has an SD card module. I got the RTC to play ...
- Fri Jun 10, 2022 5:03 pm
- Forum: General Discussion
- Topic: DS1307 RTC breaks only when called from a thread? (ESP32 / Coding)
- Replies: 5
- Views: 2483
Re: DS1307 RTC breaks only when called from a thread? (ESP32 / Coding)
Looks like the 'Rtc' module is not re-entrant, as in, it messes up when two tasks use it at the same time. Suggest either not doing that, or using a FreeRTOS mutex to make sure only one task uses it at a time. Thanks for the suggestions. I've never used mutex before. I couldn't I easily find how to...
- Fri Jun 10, 2022 5:44 am
- Forum: General Discussion
- Topic: DS1307 RTC breaks only when called from a thread? (ESP32 / Coding)
- Replies: 5
- Views: 2483
Re: DS1307 RTC breaks only when called from a thread? (ESP32 / Coding)
I just wanted to thank you all. All of those has read this, taking their time in an effort to help others. I'm still around and it doesn't go unnoticed.
If you happen to have any ballpark suggestions - feel free! I'd be glad to test them out and report back.
If you happen to have any ballpark suggestions - feel free! I'd be glad to test them out and report back.
- Thu Jun 09, 2022 8:02 pm
- Forum: General Discussion
- Topic: DS1307 RTC breaks only when called from a thread? (ESP32 / Coding)
- Replies: 5
- Views: 2483
DS1307 RTC breaks only when called from a thread? (ESP32 / Coding)
Hello, I have a LilyGo T-display with a DS1307 I2C RTC module connected. The module is working great given the example sketches. It works as expected in the setup() of my sketch. But as soon as I try to call the RTC from one of two threads, the date and time will be wrong. It'll go from a proper dat...