cancel
Showing results for 
Search instead for 
Did you mean: 

STEVAL-SPIN3201 compilation - FLASH region is overflowed

LCRUZ.9
Associate II

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.

3 REPLIES 3
AvaTar
Lead

Flash overflow means the built application is too large for the available Flash.

Try to crank up the optimization level, preferably optimizing for size.

LCRUZ.9
Associate II

Thank you for your answer. That worked.

Luis

Laurent Ca...
Lead II

"STM32 Motor Control" topic added.

Best regards