Skip to content

gneverov/gcc-cross-compiler

Repository files navigation

Arm GNU toolchain for RP2040

This project builds a custom version of the Arm GNU toolchain specifically for running Picolibc on the multicore RP2040 microcontroller.

Based on the script.

Why?

The standard GNU toolchain built by ARM is configured with --disable-tls. Because of this, Picolibc cannot be compiled using thread local storage (TLS), which prevents it being used in a multicore context on the dual-core RP2040 processor. This project rebuilds the GNU toolchain from sources, without disabling TLS, and then builds Picolibc using it.

How to build

cmake -B ./build
cmake --build ./build -j<n>
cmake --install ./build --prefix <path>
  • n - number of parallel Make jobs
  • path - path to install toolchain

About

Build the ARM GNU toolchain for RP2040

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published