2019-12-19 11:17 PM
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.