cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX generated makefile generates binary of 400MB when MPU support enabled in STM32F412CX.

FM_360
Associate II

I have generated sample code and Makefile with CubeMX for STM32F412CX. It is compiling and outputs a proper binary. but after adding changes for MPU as given in their example , the binary size is increased to 400MB.

I have read about same thing here https://community.st.com/s/question/0D50X0000BiCklr/cubeide-generate-too-big-bin-file-for-stm32wb55-402mbyte

but in that case they have used auto make using IDE instead of simple makefile. and also solution given in that is not matching with my linker script.

I have attached Makefile and linker script with MPU support.

0 REPLIES 0