Skip to main content
LCRUZ.9
Associate
February 5, 2019
Question

STEVAL-SPIN3201 compilation - FLASH region is overflowed

  • February 5, 2019
  • 3 replies
  • 1186 views

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.

This topic has been closed for replies.

3 replies

AvaTar
Senior III
February 5, 2019

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
LCRUZ.9Author
Associate
February 5, 2019

Thank you for your answer. That worked.

Luis

Laurent Ca...
Senior III
June 22, 2021

"STM32 Motor Control" topic added.

Best regards