Esp32 Crashing using heap_caps_get_largest_free_block()
Esp32 Crashing using heap_caps_get_largest_free_block()
using heap_caps_get_largest_free_block(MALLOC_CAP_8BIT) anywhere else except Setup() causes the mcu to Reset. Im trying to get information on the largest free block before i use malloc. Its important because the function its in buffer size can vary and i want to have the latest information from the heap to either use malloc or throw an error if memory is not enough for operation. So is there an alternative because im calling this from a function in a header file.
Who is online
Users browsing this forum: No registered users and 137 guests