Skip to main content
Associate III
Jun 2, 2025 6:49 AM UTC
Solved

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

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

This topic has been closed for replies.
Pavel A.
Pavel A.Best answer
Jun 2, 2025 8:19 PM UTC

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

 

 

3 replies

waclawek.jan
Super User
Jun 2, 2025 7:13 AM UTC

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
Jun 2, 2025 7:14 AM UTC

ok, thanks

Pavel A.
Pavel A.Best answer
Jun 2, 2025 8:19 PM UTC

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