Skip to main content
Associate III
June 2, 2025
Solved

Is the C library used by STM32 MCU based on glibc or musl?

  • June 2, 2025
  • 2 replies
  • 538 views

I want to know what the C library in the GCC toolchain used by STM32 MCUs

Best answer by Pavel A.

It is newlib, in two variants: "standard" and nano (aka "reduced").

 

 

2 replies

waclawek.jan
Super User
June 2, 2025

I had to look up what's musl; it appears to be a linux-specific C standard library.

gcc for Cortex-M usually uses newlib-nano.

JW

ShiinaAuthor
Associate III
June 2, 2025

ok, thanks

Pavel A.
Pavel A.Best answer
Super User
June 2, 2025

It is newlib, in two variants: "standard" and nano (aka "reduced").