Search found 123 matches

by RichPiano
Mon Jul 04, 2022 6:03 am
Forum: ESP-IDF
Topic: xQueueReceiveFromISR triggers task watchdog after long testing period
Replies: 0
Views: 1208

xQueueReceiveFromISR triggers task watchdog after long testing period

We're running tests decoding a downloaded security token from our webserver. Now for testing purposes we're downloading a new token every minute. After about 2 days the device stops working because of a watchdog failure. The task in question runs on CPU1 and is called access_token_task. The point is...
by RichPiano
Fri Apr 15, 2022 1:38 pm
Forum: ESP-IDF
Topic: vTaskDelete() doesn't trigger scope exit (object destruction) in esp port
Replies: 2
Views: 1909

Re: vTaskDelete() doesn't trigger scope exit (object destruction) in esp port

Thank you @ESP_Sprite. I have been discussing this in parallel in another thread in the FreeRTOS forum if anyone is interested.
by RichPiano
Tue Apr 12, 2022 7:59 pm
Forum: ESP-IDF
Topic: Modify FreeRTOSConfig.h with external file
Replies: 1
Views: 1427

Modify FreeRTOSConfig.h with external file

I need to modify some FreeRTOSConfig values for my project. As I read from this topic espressif doesn't want me to modify the options on my own, but is there even a way? I mean I would usually go into FreeRTOSConfig.h and change stuff, but this changes will have global influence on any of my project...
by RichPiano
Tue Apr 12, 2022 11:54 am
Forum: ESP-IDF
Topic: vTaskDelete() doesn't trigger scope exit (object destruction) in esp port
Replies: 2
Views: 1909

vTaskDelete() doesn't trigger scope exit (object destruction) in esp port

It seems that vTaskDelete() ignores C++ runtime specifications in that every scope exit must trigger the destruction of contained objects. Compare the following minimaly reproducible example: #include <stdio.h> #include <iostream> #include <string> #include "freertos/FreeRTOS.h" #include "freertos/t...
by RichPiano
Wed Mar 09, 2022 7:34 am
Forum: ESP-IDF
Topic: Various mbed_tls free() errors
Replies: 1
Views: 1955

Various mbed_tls free() errors

I'm encountering multiple system aborts that are linked to the mbed tls module, more specifically to its heap free() functions. Somehow mbed_tls fails at various stages. I have not encountered those errors before in any of my other projects, so I suspect my own code to somehow intercept the mbed_tls...
by RichPiano
Fri Mar 04, 2022 7:10 am
Forum: ESP-IDF
Topic: What's wrong with this websocket response? (Error read response for Upgrade header)
Replies: 2
Views: 2437

What's wrong with this websocket response? (Error read response for Upgrade header)

I'm using the example provided in examples/protocols/websocket to connect to my node.js/socket.io webserver. The websocket module and its associated transport_ws.c however is complaining that it can't read the following http header: E (531690) TRANSPORT_WS: Error read response for Upgrade header GET...
by RichPiano
Thu Mar 03, 2022 10:04 am
Forum: ESP-IDF
Topic: Does any of the esp32 modules use event groups?
Replies: 2
Views: 1769

Re: Does any of the esp32 modules use event groups?

Sure. I want to implement RAII-style state management for my C++ code. Also I want to unify waiting for event bits, semaphores and notices to reduce my API calls down to single decision/synchronisation points.

But if LWIP is dependent upon that I have to think of a better solution.
by RichPiano
Thu Mar 03, 2022 8:10 am
Forum: ESP-IDF
Topic: Does any of the esp32 modules use event groups?
Replies: 2
Views: 1769

Does any of the esp32 modules use event groups?

I'm trying to hijack the RTOS event list from the task control block (TCB) for my purposes. This means that event groups would probably stop working. Is any popular esp32 component dependent upon event groups? So far I have only seend event loops being used.
by RichPiano
Wed Feb 23, 2022 7:27 am
Forum: ESP-IDF
Topic: MQTT client msg_id is always 0?
Replies: 2
Views: 2415

Re: MQTT client msg_id is always 0?

No I'm actually using qos 1. However, in any case the msg_id is not what I expected then.
by RichPiano
Tue Feb 22, 2022 2:15 pm
Forum: ESP-IDF
Topic: Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0)
Replies: 11
Views: 12814

Re: Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0)

Someone told me that EXCVADDR: 0x00000000 is hinting to a nullpointer. It always held true in my case at least..

Maybe a bad alloc?