Multiple Definitions of memang functions

Hi, I am using stm32g4 series MCU. I am implementing free rtos manually in stm32 cube. After adding all necessary files such as freertos config.h file, ARM_CM4F , MemMang.
while building i am getting multiple defintions of Memmang such as PvPortMalloc, vPortFree and so on. let me know how can i fix the issue.

You’ve to select 1 of the memory managers i.e. 1 of the heap_1/2/3/4/5.c files.
See FreeRTOS - Memory management options for the FreeRTOS small footprint, professional grade, real time kernel (scheduler) for the details.

1 Like