Search found 5 matches

by slaboure
Fri Nov 08, 2024 2:07 pm
Forum: General Discussion
Topic: Bizarre behavior with C6, Arduino and RTC_NOINIT_ATTR variable
Replies: 2
Views: 604

Re: Bizarre behavior with C6, Arduino and RTC_NOINIT_ATTR variable

More on this: I started adding debugging information within the block and my boolean value (also tried to change its type to basic bool) prints as ... 47! Then, when negating the boolean, it converts to 46, then back to 47, etc. so it seems using RTC_NOINIT_ATTR seemingly changes its data type as we...
by slaboure
Fri Nov 08, 2024 10:27 am
Forum: General Discussion
Topic: Bizarre behavior with C6, Arduino and RTC_NOINIT_ATTR variable
Replies: 2
Views: 604

Bizarre behavior with C6, Arduino and RTC_NOINIT_ATTR variable

Hello, I'm programming a C6 in Arduino mode with pioarduino. My code has a boolean value that has to swap back-n-forth to properly operate an electrical motor (one time in one direction, one time in the other, etc.) Yet, from time to time, I need to soft reboot my device and when doing so, it will a...
by slaboure
Mon Oct 14, 2024 8:49 am
Forum: ESP8266
Topic: ESP8266, Deep sleep and RTC
Replies: 2
Views: 1412

Re: ESP8266, Deep sleep and RTC

Thanks! The 8266 internal clock was actually pretty good based on my measurements (about 265ms per day, so manageable), but the deep sleep makes it hard to connect the dot, as discussed, as I don't have a way to evaluate the time spent probably between going to sleep and recovery (anything that "mil...
by slaboure
Mon Oct 14, 2024 8:45 am
Forum: ESP8266
Topic: problem on wake up from deep sleep
Replies: 2
Views: 1368

Re: problem on wake up from deep sleep

In order for the device to wake itself, the RST pin must be connected to the D0/GPIO16 pin. However, that connection must be disabled when uploading new code AFAICT. Did you do so? Once it recovers from deep sleep - unlike for light sleep - it will go through a full setup->loop phase much like a ful...
by slaboure
Fri Oct 11, 2024 10:01 am
Forum: ESP8266
Topic: ESP8266, Deep sleep and RTC
Replies: 2
Views: 1412

ESP8266, Deep sleep and RTC

TLDR; When going into deep sleep, I need to "recompute" the actual time, but I cannot seem to find a way to do so semi-precisely. Context: I am managing an old (remote) clock through electrical signals, so need to send an impulse every minute. I first obtain my time with wifi/NTP, then, to reduce po...