cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to use all 512KB RAM for FreeRTOS heap with STM32F767

IanG
Associate

CubeMX (currently 6.2) does not allow to enter more than 384KB (393216 bytes) for FreeRTOS TOTAL_HEAP_SIZE when using a STM32F767 (and maybe other F76x devices).

This appears to be based on SRAM1 + SRAM2 size, but the first area of RAM, and where the heap gets located, is DTCM RAM. All three are linearly mapped, so it seems appropriate to allow up to the whole 128 + 368 + 16 = 512KB as FreeRTOS heap.

If I manually edit the .ioc file to use more than 384KB the system seems to work, so it just seems to be an incorrect limit.

0 REPLIES 0