Search found 29 matches

by davepl
Fri Jul 28, 2023 5:33 pm
Forum: General Discussion
Topic: Clock skew
Replies: 2
Views: 606

Re: Clock skew

Thanks, ChatGPT! But I'm embarassed to say my bug was a floating point precision issue. I had a stray float in my time_t -> double calculation, and when SECONDS was large enough, the fractional MICROSECONDS was being discarded, and was internally always zero. That's why it always matched! So... my b...
by davepl
Tue Jul 25, 2023 9:58 pm
Forum: General Discussion
Topic: Clock skew
Replies: 2
Views: 606

Clock skew

I've got an app (NightDriverLED.com) that relies on syncing time amongst multiple ESP32s via NTP. I've found they cam remain accurate to 1/1000000th of a second (0 microseconds) over 30 minutes, but sometimes, something happens that they shift several seconds, like 6. I have no idea what causes it. ...
by davepl
Tue Jul 25, 2023 4:59 pm
Forum: General Discussion
Topic: Only 4M PSRAM seen on N8R8 chip
Replies: 2
Views: 729

Re: Only 4M PSRAM seen on N8R8 chip

Thanks very much! I was confused by having seen the higher available counts on the S3 version, not realizing it's a significantly different chip!
by davepl
Tue Jul 25, 2023 1:29 am
Forum: General Discussion
Topic: Only 4M PSRAM seen on N8R8 chip
Replies: 2
Views: 729

Only 4M PSRAM seen on N8R8 chip

I'm using a WROVER-E-N8R8 (8M flash, 8M PSRAM) on a custom PCB. The code manages to initialize PSRAM, but it only finds 4M, not 8M. I'm using PlatformIO, though an Ardunio build. But the same code works on an 8M ESP32-S3 and reports 8M. Is there anything special or particular I can or need to do for...
by davepl
Sat Sep 18, 2021 7:48 pm
Forum: ESP-IDF
Topic: OTA_BEGIN_ERROR with my partition table
Replies: 1
Views: 1665

OTA_BEGIN_ERROR with my partition table

My app just crested the 1M boundary, and I'd like to keep OTA functionality. I also need about 1M of spiffs. I created the following partition table and it flashes and runs fine over serial, but when I try to OTA, it fails in Begin when it's considering the partition table. I presume it things I don...
by davepl
Thu Jun 24, 2021 1:15 am
Forum: ESP32 Arduino
Topic: Can someone explain the difference between these two Arduino variants?
Replies: 0
Views: 1775

Can someone explain the difference between these two Arduino variants?

I have long used: platform = https://github.com/platformio/platform-espressif32.git However, I recently found that there is: https://github.com/espressif/arduino-esp32 What I'd like is a stepping stone off of the classic Arduino SDK and I thought perhaps this was it - a way to build for esp-idf with...
by davepl
Sun Jun 20, 2021 4:53 pm
Forum: ESP32 Arduino
Topic: Is it possible to do any HEAP_CORRUPTION_DETECTION w/ Arduino?
Replies: 0
Views: 1555

Is it possible to do any HEAP_CORRUPTION_DETECTION w/ Arduino?

I'm getting very rare and sporadic failures from multi-heap (BAD HEAD, etc). I'm hoping I can somehow enable heap corruption detection and tracing when using the Arduino platform.

Is it possible? Any magic value for build_flags perhaps?

Thanks!
Dave
by davepl
Sun Jun 20, 2021 4:17 pm
Forum: ESP-IDF
Topic: Why does WiFi.begin() take 3-4 attempts to connect?
Replies: 1
Views: 2164

Why does WiFi.begin() take 3-4 attempts to connect?

I see a lot of ASSOC_LEAVE, which I thought was load balancing, but once I added printing of the BSSID, I can see that each time it's the same nearby access point. Does anyone know why it always takes me 3-4 attempts, over a total of about 10 seconds, to connect to the AP? It connects and then disco...
by davepl
Tue Jun 15, 2021 1:11 pm
Forum: ESP-IDF
Topic: Print, Abort, Exit
Replies: 1
Views: 2162

Print, Abort, Exit

I defined a simple "print error and abort" routine that unfortunately never seems to print anything. Is there anything obviously wrong with this approach? Thanks! inline void DelayedReboot() { Serial.printf("** REBOOT **"); Serial.flush(); delay(10000); exit(0); } // For catastrophic failure, wait 1...
by davepl
Sun Feb 09, 2020 7:20 pm
Forum: ESP32 Arduino
Topic: IRRemote + ESP Async Web Server == Boom
Replies: 0
Views: 2179

IRRemote + ESP Async Web Server == Boom

I'm having two problems with the IRRemote library (ID=4). If I enable it before WiFi is started, it will blow chunks (ISR touching data that's not paged in). Same problem with the ESP Async Web server. As soon as the web server goes to process a request, if the remote has been enabled, it dies a sim...