Search found 559 matches

by boarchuz
Mon Sep 04, 2023 12:01 pm
Forum: ESP32 Arduino
Topic: Are 'preferences' supposed to maintain values even over uploads of new code?
Replies: 6
Views: 3857

Re: Are 'preferences' supposed to maintain values even over uploads of new code?

Minimum NVS partition size is 0x3000b, so the inconsistent results you're seeing would fall under "undefined behaviour".

Is mynvs == false with the custom 0x2000 partition? If not, an issue on the esp32-arduino repo is probably the best way to have this addressed.
by boarchuz
Sun Aug 27, 2023 4:28 am
Forum: ESP32 Arduino
Topic: ESP32 crashes when using rom\miniz decompression function
Replies: 2
Views: 1342

Re: ESP32 crashes when using rom\miniz decompression function

Debug exception reason: Stack canary watchpoint triggered (loopTask) You'll need to increase loopTask's stack size. This is the task that Arduino creates to run your code, ie. setup() and loop(). I don't know if there's an easy way to do that, so it might be easiest (at least for the purposes of te...
by boarchuz
Sun Aug 20, 2023 9:55 pm
Forum: General Discussion
Topic: Using printf with \r does not print anything
Replies: 10
Views: 2894

Re: Using printf with \r does not print anything

He's right, put a "fflush(stdout);" in there.
by boarchuz
Wed Aug 16, 2023 3:50 am
Forum: General Discussion
Topic: Multiple versions of ESP-IDF are possible?
Replies: 3
Views: 1285

Re: Multiple versions of ESP-IDF are possible?

I've got in the habit of adding ESP-IDF as a git submodule to every project. There are a lot of advantages, and it only takes a few seconds to set up a new project once you're used to it. I have a template project with git intialised and IDF added, but no commits yet, copy the directory and rename i...
by boarchuz
Mon Aug 14, 2023 1:37 pm
Forum: ESP-IDF
Topic: HTTP Server - Progress bar on front end
Replies: 3
Views: 1276

Re: HTTP Server - Progress bar on front end

Unfortunately the ESP32 httpd is not designed for multiple concurrent requests. I was surprised by how much difficulty I had trying to find an embedded C HTTP server that is! I ultimately gave up and now simply start *two* HTTP servers on the ESP32 for this purpose. When a firmware upload is sent to...
by boarchuz
Wed Jul 26, 2023 3:52 am
Forum: Hardware
Topic: ISR on pin 39 is broken by ADC / Touch Screen inputs on pin 32,33
Replies: 2
Views: 548

Re: ISR on pin 39 is broken by ADC / Touch Screen inputs on pin 32,33

Possibly ESP32 errata 3.11:
When certain RTC peripherals are powered on, the inputs of GPIO36 and GPIO39 will be pulled down for approximately 80 ns.


"Certain RTC peripherals" includes ADC1.
by boarchuz
Mon Jun 26, 2023 1:11 am
Forum: General Discussion
Topic: RTC Boot (Slow Memory)
Replies: 0
Views: 2048

RTC Boot (Slow Memory)

The ESP32 TRM describes two RTC boot methods in 31.3.13. The second method, using RTC fast memory, is implemented in ESP-IDF (eg. esp_set_deep_sleep_wake_stub), however I can't find any references for the little-known first method. This uses RTC slow memory, and the TRM suggests that it might be a b...
by boarchuz
Tue Jun 20, 2023 10:37 pm
Forum: General Discussion
Topic: How to connect to wifi network while in APSTA mode?
Replies: 4
Views: 2494

Re: How to connect to wifi network while in APSTA mode?

Yes, you can freely change WiFi mode without needing to completely stop and restart the driver. eg. esp_wifi_start(); esp_wifi_set_mode(AP); esp_wifi_set_config(AP, &ap_config); /* ... Receive WiFi credentials from user ... */ esp_wifi_set_mode(APSTA); esp_wifi_set_config(STA, &user_sta_config); esp...
by boarchuz
Tue Jun 20, 2023 10:28 pm
Forum: ESP-IDF
Topic: Why are WebSockets so painfully slow?
Replies: 11
Views: 3816

Re: Why are WebSockets so painfully slow?

It sounds like the task watchdog. I suspect that, even with SPI_FLASH_YIELD_DURING_ERASE, these other very busy tasks still don't have enough time to get through their work. The obvious and easy thing to do is increase SPI_FLASH_ERASE_YIELD_TICKS so that the OTA task will give other tasks more time ...
by boarchuz
Tue Jun 20, 2023 10:10 pm
Forum: Hardware
Topic: ESP32 - Unable to get GPIO15 strapping pin to turn off ROM messages
Replies: 3
Views: 1007

Re: ESP32 - Unable to get GPIO15 strapping pin to turn off ROM messages

In menuconfig, change "Channel for console output" (ESP_CONSOLE_UART) to custom or none.