ST Nucleo L011K4 - region `RAM' overflowed


#1

Hello,

During linking I receive error caused by:

> .pioenvs\nucleo_l011k4\firmware.elf section ._user_heap_stack' will not fit in regionRAM’
> region `RAM’ overflowed by x bytes.

In output.map file I see that:

> .data.impure_data 0x20000000 0x428 c:/users/bzc8jx/.platformio/packages/toolchain-gccarmnoneeabi/bin/…/lib/gcc/arm-none-eabi/7.2.1/…/…/…/…/arm-none-eabi/lib/thumb/v6-m\libc.a(lib_a-impure.o) .data.__atexit_recursive_mutex

that is taking almoust 1k of RAM so heap and stack cannot fit (I’m using standard linker script).
How to fix it?

Regards,
Marcin