Skip to main content
Graduate II
June 2, 2025
Solved

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

  • June 2, 2025
  • 2 replies
  • 537 views

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

    This topic has been closed for replies.
    Best answer by Pavel A.

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

     

     

    2 replies

    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
    Graduate II
    June 2, 2025

    ok, thanks

    Pavel A.Answer
    Super User
    June 2, 2025

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