cancel
Showing results for 
Search instead for 
Did you mean: 

STMCUBEIDE - STM32L010 ROM(Flash) size exceeding

Ravi_STM32
Associate II

I am using STMCUBEIDE there i was using optimization level as "optimize for debug". there i used a local variable as uint8_t and i am incrementing its counts then memory exceeded to 85%. if i removed increment then only 37% flash memory occupied.

1 REPLY 1

Seems like it shouldn't cause that large of a consequence.

Could be a GNU/GCC thing, or a memory strategy thing.

You could perhaps increase the ROM size for the purpose of allowing the .MAP file to be generated, and see what it has brought in. Say floating point libraries or printf/scanf ones, with a large footprint and dependency chain.

Memory in the L01x parts is very tight, you might want to consider using Keil, ST has a free license for using STM32 CM0(+) devices.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..