Search found 51 matches

by marclee
Thu Aug 18, 2022 4:43 pm
Forum: ESP-IDF
Topic: SPIFFS register fails if it has been unregistered previously
Replies: 5
Views: 3713

SPIFFS register fails if it has been unregistered previously

Hello! Equipment: ESP32-S2-WROVER with SDK esp-idf.v5.0-dev-4770-gd622bcfd46 The Problem: SPIFFS register fails if it has been unregistered previously Actions: 1) Mounting SPIFFS -> ok 2) Starting HTTPD-Server -> ok 3) Unmounting SPIFFS -> ok 4) Updating SPIFFS via OTA -> ok 5) reMounting SPIFFS -> ...
by marclee
Thu Jun 02, 2022 10:34 am
Forum: ESP-IDF
Topic: scan blocks http server
Replies: 1
Views: 1142

scan blocks http server

Hello, We use ESP32-S2 with SDK esp-idf_v5.0-dev-3116-g73be74fd71-dirty. WIFI is implemented in AP and STA mode. We have implemented a WIFI autoconnect function: There's a list of the 10 most recent connected access points in NVM. After power-up ESP32 scans WIFI, using esp_wifi_scan_start(&cfg, fals...
by marclee
Tue May 31, 2022 9:47 am
Forum: ESP-IDF
Topic: Device's firmware is corrupt. It cannot return to run-time (non-DFU) operations
Replies: 2
Views: 1656

Re: Device's firmware is corrupt. It cannot return to run-time (non-DFU) operations

a2800276 wrote:
Mon May 30, 2022 3:51 pm
Are you using an S3 device?

No, I'm using ESP32-S2.
by marclee
Mon May 30, 2022 12:04 pm
Forum: ESP-IDF
Topic: Device's firmware is corrupt. It cannot return to run-time (non-DFU) operations
Replies: 2
Views: 1656

Device's firmware is corrupt. It cannot return to run-time (non-DFU) operations

After upgrading ESP-IDF to v5.0-dev-3116-g73be74fd71-dirty I get the following error message if I try to update the firmware using USB DFU.

"Device's firmware is corrupt. It cannot return to run-time (non-DFU) operations"
by marclee
Fri May 27, 2022 1:33 pm
Forum: ESP-IDF
Topic: HTTP server can't handle many requests
Replies: 11
Views: 11455

Re: HTTP server can't handle many requests

Meanwhile I figured out that httpd_resp_set_hdr(req, "Connection", "close"); was set at the wrong place in code, so that it had no effect. As a result, connections weren't closed after completing requests. Sockets kept blocked. Even though, blocked sockets shouldn't lead to fail behaviour. Even if a...
by marclee
Fri May 27, 2022 12:49 pm
Forum: ESP-IDF
Topic: HTTP server can't handle many requests
Replies: 11
Views: 11455

Re: HTTP server can't handle many requests

I'm honestly wondering if there's something else going on... the http server does have its limits, but it's not been unstable to me. Are you sure you're not e.g. subtly having memory corruption or overflowing a stack somewhere? You should be able to turn on checks for that in menuconfig fairly easi...
by marclee
Thu May 26, 2022 3:39 pm
Forum: ESP-IDF
Topic: HTTP server can't handle many requests
Replies: 11
Views: 11455

Re: HTTP server can't handle many requests

Thank you for your answer. I know that only one request can be handled at once. So how should new requests be handled while another request is processed? Could you explain what you mean with "add thread" and "thread synchronization"? Is there any example? No external event should be eligible to let ...
by marclee
Wed May 25, 2022 1:20 pm
Forum: ESP-IDF
Topic: HTTP server can't handle many requests
Replies: 11
Views: 11455

HTTP server can't handle many requests

Configuration: - ESP32-S2-WROVER (4MB) with ESP-IDF V5.0 - Wifi is running in mode WIFI_MODE_APSTA - HTTP-Server is running - different other processes are running too Everything works fine as long as HTTP server is not overloaded. HTTP requests from a web browser are processed well. Dynamic data a...