free = heap_caps_get_free_size(MALLOC_CAP_INTERNAL); if (free < s_priv_data.free.min) { s_priv_data.free.min = free; s_priv_data.free.min_ts = esp_diag_timestamp_get(); } if (free > s_priv_data.free.max) { s_priv_data.free.max = free; s_priv_data.free.max_ts = ...
* @param caps Bitwise OR of MALLOC_CAP_* flags indicating the type * of memory to be returned * * @return A pointer to the memory allocated on success, NULL on failure */ void *heap_caps_malloc(size_t size, uint32_t caps); /** * @brief Free memory previou...
Code: Select all uint32_t esp_get_free_heap_size( void ) { return heap_caps_get_free_size( MALLOC_CAP_DEFAULT ); } uint32_t esp_get_free_internal_heap_size( void ) { return heap_caps_get_free_size( MALLOC_CAP_8BIT | MALLOC_CAP_DMA | MALLOC_CAP_INTERNAL ); }3...
I haven't been able to reproduce this in an empty project yet and probably won't have time to do so for a while but thought I'd post anyway and see if anyone else has seen `heap_caps_dump(MALLOC_CAP_8BIT)` cause the interrupt WDT to panic? I get it every time from my complex...
@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. ...
bool compatible_caps = (caps & get_all_caps(heap)) == caps; @@ -466,8 +477,10 @@ HEAP_IRAM_ATTR static void *heap_caps_realloc_base( void *ptr, size_t size, uint }assert(old_size > 0); memcpy(new_p, ptr, MIN(size, old_size)); heap_caps_free(ptr); ...
heap_caps_malloc(size, MALLOC_CAP_INTERNAL);if(color_p ==NULL) { ESP_LOGE(TFT_TAG,"Failed to allocate memory (%lu bytes)", size);return; }inti =0;for(i =0; i < w * h ; i+=1) { color_p[i] = color; } lcd_PushColors(xsta, ysta, w, h, color_p);free(color_p); ...
Fyi, from what I remember the amount of D-port RAM is 328K at maximum; the rest is IRAM, cache etc. We actually feed the free IRAM into the dynamic memory allocator as well; you can allocate it using pvPortMallocCaps(size, MALLOC_CAP_32BIT). (Or at least, you should be able to...
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(...
Espressif IoT Development Framework. Official development framework for Espressif SoCs. - esp-idf/components/heap/include/esp_heap_caps.h at 8bc19ba893e5544d571a753d82b44a84799b94b1 · espressif/esp-idf