Search found 559 matches

by boarchuz
Tue Mar 26, 2024 3:53 am
Forum: General Discussion
Topic: Using the esp_restart function will cause the RTC watchdog to reset when the software is reset
Replies: 2
Views: 220

Re: Using the esp_restart function will cause the RTC watchdog to reset when the software is reset

I guess it's doing its job. Everything in the RTC domain will be untouched with a SW reset so there's always the chance that some configuration or ongoing activity interferes with reinitialisation. A RTC WDT reset will clear everything for a clean slate. What do you get with this?: xtensa-esp32-elf-...
by boarchuz
Thu Mar 21, 2024 4:04 am
Forum: ESP8266
Topic: ESP Now - Wrong data in structure
Replies: 3
Views: 154

Re: ESP Now - Wrong data in structure

memcpy(&recData, incomingData, sizeof(incomingData));
You're taking the sizeof a pointer, so only the first 4 received bytes are being copied into your recData struct.
by boarchuz
Sat Mar 16, 2024 2:17 pm
Forum: Hardware
Topic: Failed to communicate with the flash chip
Replies: 3
Views: 322

Re: Failed to communicate with the flash chip

12 determines the voltage of the VDD_SPI domain (ie. the voltage supplied to the flash chip, 1V8 or 3V3). You can set this voltage in efuses instead, and the pin level will then be ignored so you can connect whatever you like. 2 (along with 0) determines the boot mode (ie. run the application normal...
by boarchuz
Sat Mar 16, 2024 7:48 am
Forum: Hardware
Topic: Failed to communicate with the flash chip
Replies: 3
Views: 322

Re: Failed to communicate with the flash chip

Check 2 and 12. Both should be low. You can try removing everything connected to these pins externally to allow the internal pulldowns to do this automatically.
by boarchuz
Sat Mar 16, 2024 7:45 am
Forum: ESP32 Arduino
Topic: ESP32-C6 Low Power hanging device?
Replies: 3
Views: 356

Re: ESP32-C6 Low Power hanging device?

You only set esp_sleep_enable_timer_wakeup once. After the first sleep+wakeup, there is no wakeup source configured so it's expected that it remains in light sleep forever.

Try moving esp_sleep_enable_timer_wakeup to the line before esp_light_sleep_start.
by boarchuz
Mon Mar 11, 2024 11:44 am
Forum: ESP-IDF
Topic: WiFi station no longer finds APs after 5 minutes of scanning
Replies: 10
Views: 573

Re: WiFi station no longer finds APs after 5 minutes of scanning

You want to rule out a memory leak exhausting heap memory, not your task's stack.

Log these after each scan: esp_get_free_heap_size(), esp_get_minimum_free_heap_size()
by boarchuz
Mon Mar 04, 2024 5:03 pm
Forum: General Discussion
Topic: [SOLVED] ESPNOW Packets Send Only AFTER De-Initilasation of Wireless Protocols
Replies: 2
Views: 306

Re: ESPNOW Packets Send Only AFTER De-Initilasation of Wireless Protocols

https://docs.espressif.com/projects/esp ... structures

Also esp_now_send return value only indicates that the packet was internally queued successfully. You need to use the send callback to determine the outcome of sending it.
by boarchuz
Tue Feb 13, 2024 3:50 am
Forum: ESP-IDF
Topic: freertos task does not cleanup c++ class objects on vTaskDelete
Replies: 3
Views: 350

Re: freertos task does not cleanup c++ class objects on vTaskDelete

vTaskDelete doesn't return so obj never goes out of scope so obj's destructor never runs. This is expected. C++ has no way of "knowing" what vTaskDelete(NULL) does, it can't be cleaning up anything upon arbitrary function calls that it expects to return from. A separate function or your commented br...
by boarchuz
Mon Feb 05, 2024 4:36 am
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 1658

Re: ESP32-S2: need to adjust Brown Out Level at runtime

However, if I programmatically set the brown-out detector threshold to 3.19v right before shutting off the boost converter (remember, the ultracap is 3.0v max), the ESP32-S2 is guaranteed to be held in brown-out reset until VDD reaches 3.30v. What is guaranteeing this? I would expect an immediate b...
by boarchuz
Tue Jan 30, 2024 1:50 am
Forum: Showcase
Topic: ESP32 USB DFU Bootloader
Replies: 0
Views: 590

ESP32 USB DFU Bootloader

https://github.com/boarchuz/bo_dfu Bitbanged USB Low Speed and DFU for the ESP32 2nd-stage bootloader. It works surprisingly well, give it a try! It's surreal plugging my ESP32 into my phone and updating it in a web browser (when WebUSB decides to work, at least). Some ideas: enable OTA updates with...