Building blinky template for Nucleo-G031K8 fails with L6221E (out of RAM?)

Building (linking stage) the template “mbed-os-example-blinky” out-of-the-box for Nucleo-G031K8 in Mbed Studio on Windows 10 gives the error:

Link: mbed-os-example-blinky
[Warning] @0,0: L3912W: Option 'legacyalign' is deprecated.
[Error] @0,0: L6221E: Execution region RW_IRAM1 with Execution range [0x200000c0,0x20001e80) overlaps with Execution region ARM_LIB_STACK with Execution range [0x20001c00,0x20002000).
[Error] @0,0: L6221E: Execution region ARM_LIB_HEAP with Execution range [0x20001e80,0x20001e80) overlaps with Execution region ARM_LIB_STACK with Execution range [0x20001c00,0x20002000).
Warning: L3912W: Option 'legacyalign' is deprecated.
Error: L6221E: Execution region RW_IRAM1 with Execution range [0x200000c0,0x20001e80) overlaps with Execution region ARM_LIB_STACK with Execution range [0x20001c00,0x20002000).
Error: L6221E: Execution region ARM_LIB_HEAP with Execution range [0x20001e80,0x20001e80) overlaps with Execution region ARM_LIB_STACK with Execution range [0x20001c00,0x20002000).
Finished: 0 information, 1 warning and 2 error messages.

If this is a RAM limitation issue, is there a way to reduce the RAM footprint of mbed-os?

Hello,

NUCLEO-G031K8 | Mbed has 64 Kbytes of Flash memory, 8 Kbytes RAM. That’s not enough for full MbedOS, try to use Mbed OS bare metal profile. In the MbedStudio is also template for it - mbed-os-example-blinky-baremetal

BR, Jan