Search found 566 matches

by boarchuz
Sat Mar 16, 2024 7:48 am
Forum: Hardware
Topic: Failed to communicate with the flash chip
Replies: 3
Views: 472

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: 9
Views: 776

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: 717

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: 376

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: 396

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: 2106

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: 2
Views: 1503

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...
by boarchuz
Wed Jan 24, 2024 10:15 pm
Forum: General Discussion
Topic: Padding Bytes between Instructions in Disassembly
Replies: 2
Views: 600

Re: Padding Bytes between Instructions in Disassembly

Looks like this: https://sourceware.org/binutils/docs/as ... nment.html

"As an optimization to improve performance, the assembler attempts to align branch targets so they do not cross instruction fetch boundaries."
by boarchuz
Mon Jan 22, 2024 12:09 pm
Forum: ESP-IDF
Topic: Support for multiple coredumps?
Replies: 2
Views: 546

Re: Support for multiple coredumps?

Will overwrite. Only one is supported.