Search found 566 matches

by boarchuz
Wed Aug 16, 2023 3:50 am
Forum: General Discussion
Topic: Multiple versions of ESP-IDF are possible?
Replies: 3
Views: 1343

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

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

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

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

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

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

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.
by boarchuz
Tue Jun 20, 2023 5:38 am
Forum: General Discussion
Topic: stopping wifi before going into deep sleep?
Replies: 1
Views: 980

Re: stopping wifi before going into deep sleep?

Yes, you should at least esp_wifi_stop. If your IDF version is fairly recent then it will automatically esp_wifi_stop before deep sleep anyway (see esp_register_shutdown_handler). I would also recommend waiting a moment for the subsequent WIFI_EVENT_[STA/AP]_STOP event to ensure it has actually stop...
by boarchuz
Tue Jun 20, 2023 5:24 am
Forum: ESP32 Arduino
Topic: Sharing input/output GPIO without frying anything
Replies: 4
Views: 1597

Re: Sharing input/output GPIO without frying anything

Conveniently, SVN and SVP are ADC pins, so you could also use one or both to handle all 5 inputs using ADC reads and carefully-sized resistors.
by boarchuz
Tue Jun 20, 2023 5:16 am
Forum: ESP-IDF
Topic: Why are WebSockets so painfully slow?
Replies: 11
Views: 4150

Re: Why are WebSockets so painfully slow?

writing it to an OTA partition then takes ~7.6min I'm currently using the "OTA_WITH_SEQUENTIAL_WRITES" macro as second parameter when invoking esp_ota_begin as everything else gives me a TG1WDT_SYS_RST panic. I assume the flash write times could be improved upon if one could erase the entire partit...