uint16_t* p_buffer_a = (uint16_t*) heap_caps_malloc( 307200, MALLOC_CAP_8BIT | MALLOC_CAP_DMA | MALLOC_CAP_SPIRAM ); uint16_t* p_buffer_b = (uint16_t*) heap_caps_malloc( 307200, MALLOC_CAP_8BIT | MALLOC_CAP_DMA | MALLOC_CAP_SPIRAM ); if( p_buffer_a == NULL || ...
uint32_t min_free_ever; if (!s_priv_data.init) { return; } #ifdef CONFIG_ESP32_SPIRAM_SUPPORT free = heap_caps_get_free_size(MALLOC_CAP_SPIRAM); if (free < s_priv_data.ext_free.min) { s_priv_data.ext_free.min = free; s_priv_data.ext_free.min_ts = esp_diag_timestamp...
heap_caps_init.c heap_private.h heap_task_info.c heap_trace_standalone.c internals.md linker.lf multi_heap.c multi_heap_config.h multi_heap_internal.h multi_heap_platform.h multi_heap_poisoning.c http_parser idf_test ieee802154
Re: heap_caps_malloc() returning NULL on spiramby WiFive » Sat Nov 27, 2021 5:57 am https://github.com/espressif/esp-idf/bl ... y_layout.c11 posts 1 2 Return to “ESP-IDF” Jump to Who is online Users browsing this forum: Baidu [Spider], Majestic-12 [Bot] and 62 ...
Espressif IoT Development Framework. Official development framework for Espressif SoCs. - esp-idf/components/heap/include/esp_heap_caps.h at 8bc19ba893e5544d571a753d82b44a84799b94b1 · espressif/esp-idf
@czuvichDepending on the SDK versionESP.getFreeHeap()will return values calculated differently and may deceive. Until this is stabilized, I'll keep usingheap_caps_get_free_size(MALLOC_CAP_INTERNAL)instead which sticks to the historical behaviour. ...
Serial.println(str); multi_heap_info_t info; heap_caps_get_info(&info, MALLOC_CAP_8BIT); free_CAP_8BIT = info.total_free_bytes ; heap_caps_get_info(&info, MALLOC_CAP_SPIRAM); free_CAP_SPIRAM = info.total_free_bytes ; free_CAP_INTERNAL = info.total_free_bytes ; Serial.print(...
to allocate %d bytes with 0x%X capabilities. \n",function_name, requested_size, caps); } void app_main() { ... esp_err_t error = heap_caps_register_failed_alloc_callback(heap_caps_alloc_failed_hook); ... void *ptr = heap_caps_malloc(allocation_size, MALLOC_CAP_DEFAULT); ... }...
Espressif IoT Development Framework. Official development framework for Espressif SoCs. - esp-idf/components/heap/include/esp_heap_caps.h at 37d11ea04d21a54349926e81b0f53b596ce88383 · espressif/esp-idf
Espressif IoT Development Framework. Official development framework for Espressif SoCs. - esp-idf/components/heap/include/esp_heap_caps.h at a6a962d5f85ed28910339019c2e7879683d14d17 · espressif/esp-idf