esp_err_t error = heap_caps_register_failed_alloc_callback(heap_caps_alloc_failed_hook); Code: Select all void heap_caps_alloc_failed_hook(size_t requested_size, uint32_t caps, const char *function_name) { printf("%s was called but failed to allocate %d bytes with %ld capabilities. ...
My question is if my transfer buffer is a void *heap_caps_malloc(size_t size, uint32_t caps) where size is multiple of 4 bytes and caps is MALLOC_CAP_DMA) is the buffer address guaranteed by be on a 32 bit boundary? If not what can one do to guarantee the buffer address is on...
for ESP32 IDF4.2.3 In my source code I was calling heap_caps_malloc() to allocate memory As I have enabled External ram to allocate memory In my case heap_caps_malloc() called successfully but failed to allocate the memory FYI, Heap memory was still available HEAP SIZE : 74291 by...