You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First,it,s celebratory that tlsf work well in SDRAM with STM32H750.
But how can I know the free size just like esp_get_free_heap_size();
I try to log info after malloc, but the value not change.Or I need to count that in my way? log_d("tlsf size:%d", tlsf_size()); log_d("tlsf align size:%d", tlsf_align_size()); log_d("tlsf block size_min:%d", tlsf_block_size_min()); log_d("tlsf block size max:%d", tlsf_block_size_max());
The text was updated successfully, but these errors were encountered:
@MoonLight423 as documented in the header, these functions all return constants. There is no function that gives you the available memory directly. However, you can use tlsf_walk_pool to get all unused blocks, and tlsf_block_size to get the size of each unused block.
First,it,s celebratory that tlsf work well in SDRAM with STM32H750.
But how can I know the free size just like esp_get_free_heap_size();
I try to log info after malloc, but the value not change.Or I need to count that in my way?
log_d("tlsf size:%d", tlsf_size()); log_d("tlsf align size:%d", tlsf_align_size()); log_d("tlsf block size_min:%d", tlsf_block_size_min()); log_d("tlsf block size max:%d", tlsf_block_size_max());
The text was updated successfully, but these errors were encountered: