Hello,
I have an app that uses BLE and WiFi. I required to allocate a large free block (size=115200). However, when I call to heap_caps_get_largest_free_block(MALLOC_CAP_DMA | MALLOC_CAP_32BIT)) I see that there is not enough largest free block memory (free size=110592). What could I do to free heap memory in order to get the suitable large free block?
␛[0;32mI (7378) hagl_esp_mipi: Largest (MALLOC_CAP_DMA | MALLOC_CAP_32BIT) block before init: 110592␛[0m
␛[0;32mI (7378) hagl_esp_mipi: Size required: 115200␛[0m
␛[0;31mE (7388) hagl_esp_mipi: NO BUFFER 1␛[0m
␛[0;32mI (7388) hagl_esp_mipi: Largest (MALLOC_CAP_DMA | MALLOC_CAP_32BIT) block after init: 110592␛[0m
Heap summary for capabilities 0x0000000A:
At 0x3ffb6388 len 7288 free 168 allocated 5496 min_free 168
largest_free_block 0 alloc_blocks 41 free_blocks 0 total_blocks 41
At 0x3ffb9a20 len 16648 free 176 allocated 14848 min_free 48
largest_free_block 68 alloc_blocks 25 free_blocks 1 total_blocks 26
At 0x3ffcaa30 len 87504 free 76360 allocated 9520 min_free 76360
largest_free_block 75776 alloc_blocks 6 free_blocks 1 total_blocks 7
At 0x3ffe0440 len 15072 free 13448 allocated 0 min_free 13448
largest_free_block 13312 alloc_blocks 0 free_blocks 1 total_blocks 1
At 0x3ffe4350 len 113840 free 112216 allocated 0 min_free 112216
largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
Totals:
free 202368 allocated 29864 min_free 202240 largest_free_block 110592
Regards,
David
get largest free block
Return to “General Discussion”
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: Bing [Bot] and 87 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.