Core Dump max tasks and partition size clarification

cartoon
Posts: 5
Joined: Fri Feb 17, 2023 5:53 pm

Core Dump max tasks and partition size clarification

Postby cartoon » Thu Sep 21, 2023 12:28 am

Hello,
I want to make sure I'm using core dump with a properly sized partition, but had some questions after reading the documentation. The docs state
partition size should be at least 20 + max tasks number x (12 + TCB size + max task stack size) bytes.
When I check sizeof(StaticTask_t) I get 344 for TCB. Assuming the max task stack size is 4096, I get 284948 as the resulting size with the default 64 max tasks number.
I only have the core dump partition sized at 0x10000B, could the esp32 run into any issues if the partition size doesn't satisfy the above formula?

Also I'm not sure if I understand what max tasks number refers to. Is it the number of core dumps or crashes which can be save within the partition? I assumed only a single core dump can be stored and it gets overwritten by new dumps

Who is online

Users browsing this forum: No registered users and 102 guests