Search found 11 matches

by HitecSmartHome
Mon May 27, 2024 9:51 am
Forum: General Discussion
Topic: Task usage understanding
Replies: 10
Views: 3485

Re: Task usage understanding

For example the Time class ... just loops and checks and stores the uptime of the chip. Why does it "store" the uptime? Can't it just "calculate"/provide the uptime when requested? Hardware class ... pushes data to uart, waits for the response and it pushes the next packet as soon as it can. This t...
by HitecSmartHome
Mon May 27, 2024 7:02 am
Forum: General Discussion
Topic: Task usage understanding
Replies: 10
Views: 3485

Re: Task usage understanding

But my tasks are independent from each other. How would you use blocking operations in this case? task1 -> doing it's own things -> yielding so the OS can task switch task2 -> doing it's own things -> yielding so the OS can task switch In almost all cases, tasks don't do calculations all the time; ...
by HitecSmartHome
Fri May 24, 2024 1:50 pm
Forum: General Discussion
Topic: Task usage understanding
Replies: 10
Views: 3485

Re: Task usage understanding

Do i need a main task which loops forever and controlls all the other tasks?
by HitecSmartHome
Fri May 24, 2024 11:22 am
Forum: General Discussion
Topic: Task usage understanding
Replies: 10
Views: 3485

Re: Task usage understanding

Almost all of my tasks are higher priority than the IDLE task. They do a vTaskDelay(1); in every iteration to feed the system but I expected them to run much more than the IDLE task. This is a little bit strange to me. I did not experience any performance bottleneck but how would I make my tasks ru...
by HitecSmartHome
Fri May 24, 2024 9:08 am
Forum: General Discussion
Topic: Task usage understanding
Replies: 10
Views: 3485

Re: Task usage understanding

Thank you very much for the explanations. Almost all of my tasks are higher priority than the IDLE task. They do a vTaskDelay(1); in every iteration to feed the system but I expected them to run much more than the IDLE task. This is a little bit strange to me. I did not experience any performance bo...
by HitecSmartHome
Fri May 24, 2024 7:18 am
Forum: General Discussion
Topic: Task usage understanding
Replies: 10
Views: 3485

Task usage understanding

Hello guys! Please help me understand IDF FreeRTOS task usages. I have wrote a function which monitors all of the running tasks and saves their stats to an Arduino Json Document. (I'm using Arduino as a component of IDF with PlatformIO) Here is the method which tracks and retrives task information v...
by HitecSmartHome
Tue May 07, 2024 9:57 am
Forum: ESP32 Arduino
Topic: Not able to Deocde Coredump but Can decode Backtrace
Replies: 3
Views: 2432

Re: Not able to Deocde Coredump but Can decode Backtrace

GeorgeIoak wrote:
Thu Jun 15, 2023 11:01 pm
Can anybody confirm that they've successfully decoded a coredump?
Still trying
by HitecSmartHome
Fri Apr 26, 2024 11:14 am
Forum: ESP-IDF
Topic: Porting PIO Arduino,IDF project to VSCODE IDF
Replies: 0
Views: 504

Porting PIO Arduino,IDF project to VSCODE IDF

Hello guys! I have a massive project written with PlatformIO using arduino and idf. Since I have read that PIO will not move to the latest sdk I started to port my project to VSCODE with IDF extension. I have successfully setup a basic project with Arduino as a component of IDF and i could compile ...
by HitecSmartHome
Thu Apr 11, 2024 6:26 am
Forum: General Discussion
Topic: Efficient use of vTaskList and vTaskGetRunTimeStats
Replies: 2
Views: 989

Re: Efficient use of vTaskList and vTaskGetRunTimeStats

I solved it eventually void TaskInfo::get() { UBaseType_t uxArraySize; TaskStatus_t *taskStatusArray; uint32_t ulTotalRunTime,ulStatsAsPercentage; uxArraySize = uxTaskGetNumberOfTasks(); taskStatusArray = (TaskStatus_t *)pvPortMalloc(uxArraySize * sizeof(TaskStatus_t)); if (taskStatusArray != NULL) ...
by HitecSmartHome
Wed Apr 10, 2024 9:16 am
Forum: General Discussion
Topic: Efficient use of vTaskList and vTaskGetRunTimeStats
Replies: 2
Views: 989

Efficient use of vTaskList and vTaskGetRunTimeStats

Hello guys! I want to gather data about my tasks into a JsonDocument with ArduinoJson. The problem I'm facing is that vTaskList and vTaskGetRunTimeStats does not provide any struct or usable variables to retrive information. My thiking would be something like this //retrive vTaskList into a struct o...