Search found 13 matches

by FrancoB
Tue Jun 24, 2025 7:42 pm
Forum: ESP-IDF
Topic: ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.
Replies: 14
Views: 598

Re: ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.

Greetings MicroController

Yes, I understand. My only doubt about that approach is if tasks can be set as a callback for the timer. I'm guessing that they can't, so I'll have to implement an algoritm combining maybe task notifications and a central task that yields control to the other tasks. A bit ...
by FrancoB
Tue Jun 24, 2025 6:42 pm
Forum: ESP-IDF
Topic: ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.
Replies: 14
Views: 598

Re: ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.

Greetings MicroController

The "High Resolution Timer" can do that for you (with light sleep)...

I see. So, if I understand your suggestion, what should I do is set a HRT for each task in replace of the "vTaskDelay()", and then use the callbacks of those timers to run the corresponding tasks ...
by FrancoB
Tue Jun 24, 2025 3:33 pm
Forum: ESP-IDF
Topic: ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.
Replies: 14
Views: 598

Re: ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.

Greetings MicroController

You want multiple tasks to block until some other task 'tells them' to run; then you probably also want the 'controlling' task to wait for all other tasks to finish doing their thing before the system goes back to sleep.
For this, you can basically use any of the ...
by FrancoB
Mon Jun 23, 2025 6:51 pm
Forum: ESP-IDF
Topic: ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.
Replies: 14
Views: 598

Re: ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.

Greetings boarchuz

I see. Regarding those FreeRTOS functions, could you name any of them so I can look for more information?

Regarding light sleep callbacks, but those work in case I use Power Management, not with manual "light sleep", right? Or maybe I can use it with manual "light sleep" if I ...
by FrancoB
Mon Jun 23, 2025 3:20 pm
Forum: ESP-IDF
Topic: ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.
Replies: 14
Views: 598

Re: ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.

Greetings boarchuz

Yes, I understand what you say, and I understand the funcionality of "Power Management". The problem that I have with it is the following. Suppose that I'm using PM and I have 20 tasks, all with their corresponding delays, each with different times. What will happen is, yes, the ...
by FrancoB
Mon Jun 23, 2025 1:45 pm
Forum: ESP-IDF
Topic: ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.
Replies: 14
Views: 598

Re: ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.

Greetings.

Sorry, I didn't quite understand if what you said is a suggestion about what should I do to solve this issue, or a description of how ESP-IDF works regarding FreeRTOS's delays and ESP32 sleep mode.

In case that it was a suggestion, I would have to ask if there is no other way of solving ...
by FrancoB
Thu Jun 19, 2025 7:27 pm
Forum: ESP-IDF
Topic: ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.
Replies: 14
Views: 598

ESP-IDF V4.4.6 - Problems when using vTaskDelay with light sleep.

Greetings.

I'm currently programming an ESP32-WROVER-E module. I'm trying to use light sleep to reduce the module energy consumption. However, suppose that I have the main task, in which I call the function "esp_light_sleep_start()" after setting a timer wakeup with the function "esp_sleep_enable ...
by FrancoB
Tue Sep 17, 2024 5:34 pm
Forum: ESP-IDF
Topic: ESP-IDF V4.4.6 - Print crash report via JTAG
Replies: 0
Views: 2011

ESP-IDF V4.4.6 - Print crash report via JTAG

Greetings. I'm currently trying the "Application Level Tracing" functionalities, with the goal of printing log info via JTAG interface instead of UART interface. I've tried with printing "ESP_LOG" statements and seems to work fine. However, it would be really helpful if I could print crash reports ...
by FrancoB
Mon Apr 08, 2024 2:13 pm
Forum: ESP-IDF
Topic: ESP-IDF V4.4.6 - Can't use core dump
Replies: 2
Views: 2568

Re: ESP-IDF V4.4.6 - Can't use core dump

Greetings ESP_Roland. That's correct, that is the other post that I made about the same topic, basically to increment the possibilities of getting an answer. But, as I said, it is me who made that post on GitHub.

Go to advanced search