Incorrect work vTaskList()
Posted: Thu Nov 02, 2023 7:37 am
I am trying to use a function vTaskList() to get the stack size when my program is running. But I always get the allocated stack size, not the actually used one. How do I see how much memory is actually filled?
By running the same subroutine with different stack sizes, I get different sizes of occupied memory, but it should be the same. Or do I not understand something?
By running the same subroutine with different stack sizes, I get different sizes of occupied memory, but it should be the same. Or do I not understand something?
Code: Select all
xTaskCreatePinnedToCore(bmp280, "bmp280_first", 10000, NULL, 5, NULL, APP_CPU_NUM);
xTaskCreatePinnedToCore(bmp280, "bmp280_second", 3096, NULL, 5, NULL, APP_CPU_NUM);
mqtt task________________B________5________1104________23________-1
bmp280_second________B________5________1008________18________1
bmp280_first___________B________5________10204________17________1
netif rx task____________B________5________2212________22________-1