5.1 FreeRTOS Heap Requirement
Project | Total Heap Size | |
---|---|---|
Building Block – Misc. | mr_ml_trp_uart | 85,812 |
HCI_application | 75,812 | |
Building Block – Peripheral | two_set_adv | 75,812 |
peripheral_conn | 75,812 | |
legacy_adv_pathloss | 75,812 | |
legacy_adv | 75,812 | |
ext_adv | 75,812 | |
ble_deep_sleep_adv | 75,812 | |
peripheral_trp_uart | 75,812 | |
peripheral_trp_uart_codedPhy | 75,812 | |
custom_service | 75,812 | |
Building Block – Central | central_ml_trp_uart | 85,812 |
legacy_scan | 75,812 | |
central_conn | 75,812 | |
central_trp_uart | 75,812 | |
central_trp_uart_codedPhy | 75,812 | |
scan_ext_adv | 75,812 | |
Advanced Applications | ble_throughput | 75,812 |
ble_sensor | 75,812 | |
ble_pxpr_app | 61,440 | |
ble_pxpm_app | 61,440 | |
ble_hogps_app | 61,440 | |
ble_anps_app | 61,440 | |
ble_anpc_app | 61,440 | |
ble_ancs_app | 61,440 | |
Peripheral Applications | tcpip_tcp_server_trp_uart | 143,360 |
parallel8080_peripheral_trp_uart | 100,000 | |
lcc_central_trp_uart | 100,000 | |
can_peripheral_trp_uart | 75,812 | |
qei_peripheral_trp_uart | 75,812 | |
touch_peripheral_trp_uart | 75,812 | |
usb_cdc_peripheral_trp_uart | 75,812 |
Expanding the application with additional peripherals or features will result in larger heap
memory consumption. To ensure system stability, it is recommended to track heap usage at
runtime using the vPortGetHeapStats()
API function. Monitoring available heap
space during typical operation helps identify consistent usage patterns and allows for setting
an appropriate total heap size for the project.
For further details, refer to the FreeRTOS Heap Memory Management in Reference Documentation from Related Links.