Skip to main content
Iaomari
Associate II
May 26, 2021 8:48 AM UTC
Question

STM32WLE5C8 : region `FLASH' overflowed by *** bytes0

Hi everyone :)

I'm at the first steps of building a Lora application with STM32WLE5C8 MCU.

While using CubeMX to generate the code, and after defining the pinout of the chip, connectivity, and LORWAN in middleware, I opened the project in CudeIDE and tried to build it, I got :

make: *** [makefile:79: TEST3.elf] Error 1 TEST3 C/C++ Problem

region `FLASH' overflowed by 484 bytes TEST3 C/C++ Problem

TEST3.elf section `.rodata' will not fit in region `FLASH' TEST3 C/C++ Problem

I still didn't start writing the Lora application, I wanted to make sure that the generated files are working correctly.

I tried to make the same settings with STM32WLE55 (which has more flash and ram) and the building process seems to work just fine!

Is there anything I can do to still be able to use the STM32WLE5C8 MCU?

I'm new to STM32 MCU :D

thanks a lot

This topic has been closed for replies.

5 replies

Uwe Bonnes
Chief
May 26, 2021 9:12 AM UTC

Your programm is to big. Try cutting it down or compile better optimized for size.

Ozone
Principal
May 26, 2021 9:16 AM UTC

I agree, try to turn up optimisation settings first.

But be aware that higher optimisation settings broke Cube/HAL code not only once.