Search found 7 matches

by HohkeiV
Thu Nov 10, 2022 1:08 pm
Forum: ESP-IDF
Topic: esp-dsp could be compiled and run on any platform?
Replies: 0
Views: 592

esp-dsp could be compiled and run on any platform?

All FFT functions from the ESP DSP library have a line in the documentation: The implementation use ANSI C and could be compiled and run on any platform These statements are peppered across https://docs.espressif.com/projects/esp-dsp/en/latest/esp-dsp-apis.html#fft , but I am adding a question mark....
by HohkeiV
Mon Jan 24, 2022 5:41 pm
Forum: ESP-IDF
Topic: http_server multiple concurrent requests
Replies: 1
Views: 2529

http_server multiple concurrent requests

Does esp_http_server handle concurrency? I use a default config params, such as sdkconfig:CONFIG_LWIP_MAX_SOCKETS=10 and I have this in my code: httpd_config_t config = HTTPD_DEFAULT_CONFIG(); config.max_open_sockets = 7; But that doesn't seem to be sufficient to correctly handle concurrent requests...
by HohkeiV
Wed Jan 19, 2022 1:20 pm
Forum: ESP-IDF
Topic: http_req_t passed as void* to FreeRTOS task causes Guru Meditation Error (LoadProhibited)
Replies: 8
Views: 5648

Re: http_req_t passed as void* to FreeRTOS task causes Guru Meditation Error (LoadProhibited)

The semaphore makes sure only one task is running at any given time, the others wait for their turn (if by 'the same time' you mean 'while a task is running')
by HohkeiV
Wed Jan 19, 2022 12:44 pm
Forum: ESP-IDF
Topic: http_req_t passed as void* to FreeRTOS task causes Guru Meditation Error (LoadProhibited)
Replies: 8
Views: 5648

Re: http_req_t passed as void* to FreeRTOS task causes Guru Meditation Error (LoadProhibited)

Thanks ESP_Sprite for a colorful illustration of what was wrong with my code. The take home message has reached the destination. Which is: don't try to grab the memory that is not mine for taking. On the other hand, I think we'll agree that such details as memory guarantees are poorly if at all docu...
by HohkeiV
Mon Jan 17, 2022 8:50 am
Forum: ESP-IDF
Topic: http_req_t passed as void* to FreeRTOS task causes Guru Meditation Error (LoadProhibited)
Replies: 8
Views: 5648

Re: http_req_t passed as void* to FreeRTOS task causes Guru Meditation Error (LoadProhibited)

Your 1st point makes perfect sense. I am experimenting with the httpd component with the goal of using it in situations of shared access to a resource and your suggestion is certainly going in the right direction, but this was the simplest warm-up example I could think of. Concerning your second poi...
by HohkeiV
Sun Jan 16, 2022 8:35 pm
Forum: ESP-IDF
Topic: http_req_t passed as void* to FreeRTOS task causes Guru Meditation Error (LoadProhibited)
Replies: 8
Views: 5648

http_req_t passed as void* to FreeRTOS task causes Guru Meditation Error (LoadProhibited)

Take a simplest http server example, and instead of handling a httpd request "directly", delegate the handling to a task, through a pointer to httpd_req_t . In my case, this causes a stack overflow. Why and how to fix it? After some digging, it turns out that void *aux , member of httpd_req_t is NUL...