2019-02-05 03:00 AM
Hello,
I just received the eval board STEVAL-SPIN3201 and am following the document UM2152. Configuration-wise everything seems OK, but I am encountering a compilation problem, the FLASH region is overflowed:
>> MOTOR_0001.elf section `.text' will not fit in region `FLASH'
>> region `FLASH' overflowed by 26240 bytes
>> collect2.exe: error: ld returned 1 exit status
>> makefile:37: recipe for target 'MOTOR_0001.elf' failed
>> make: *** [MOTOR_0001.elf] Error 1
I did not modified the default parameters. Also, I tried compiling with different optimization levels, same result.
This is my config:
Windows 10 64-bits
STEVAL-SPIN3201
ST Motor Control Workbench version 5.3.2.18569
STM32 CubeMX version 5.0.0 (STM32Cube V1.0)
See attached file.
Any idea of what may be causing it?
Luis C.
2019-02-05 03:21 AM
Flash overflow means the built application is too large for the available Flash.
Try to crank up the optimization level, preferably optimizing for size.
2019-02-05 03:32 AM
Thank you for your answer. That worked.
Luis
2021-06-22 01:50 AM
"STM32 Motor Control" topic added.
Best regards