0

I am currently trying to get familiar with stm32f769 board. I noticed that when I use malloc I get a build error.

undefined reference to `_sbrk'

I am not really familiar with micro-controller development, so am not sure if this error is because stdlib doesn't exist for or something else.

These are the compiler flags I am using:

ARCH_FLAGS=-mthumb -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -ffast-math

CFLAGS=-ggdb -O2 -std=c99 -Wall -Wextra -Warray-bounds -Wno-unused-parameter $(ARCH_FLAGS) $(INC) -DSTM32F769xx -DUSE_HAL_DRIVER

0 Answers0