ST32cubeIDE build error with code generated by Motor control MC_SDK
Dear all,
I used MotorControl Workbench 5.4.3 to generate code (toolchain st32cubeIDE) and use st32cubeIDE 1.3.0 to build code. If my project is Nucleo IHM001 kit, code build successful. When my project is STEVAL SPIN3202, code build error (collect2.exe: error: ld returned 1 exit status
make: *** [makefile:46: Steval_spin3203_test.elf] Error 1).
Build console:
11:45:45 **** Incremental Build of configuration Debug for project Steval_spin3203_test ****
make all
arm-none-eabi-gcc -o "Steval_spin3203_test.elf" @"objects.list" -l:libmc-gcc_M0.lib -mcpu=cortex-m0 -T"D:\newpro\Arm\Foc_encoder\firmware_FOC\Steval_spin3202\Steval_spin3203_test\STM32CubeIDE\STM32F031C6TX_FLASH.ld" --specs=nosys.specs -Wl,-Map="Steval_spin3203_test.map" -Wl,--gc-sections -static -L../../MCSDK_v5.4.3/MotorControl/lib --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
c:\st\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: Steval_spin3203_test.elf section `.text' will not fit in region `FLASH'
c:\st\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: Steval_spin3203_test.elf section `._user_heap_stack' will not fit in region `RAM'
c:\st\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: region `RAM' overflowed by 8 bytes
c:\st\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: region `FLASH' overflowed by 22948 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:46: Steval_spin3203_test.elf] Error 1
"make all" terminated with exit code 2. Build might be incomplete.
11:45:53 Build Failed. 1 errors, 0 warnings. (took 7s.493ms)
How can I fix this error?
Thank you.