Skip to main content
FM_360
Associate II
December 20, 2019
Question

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

  • December 20, 2019
  • 0 replies
  • 522 views

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.

This topic has been closed for replies.