A toolchain is a set of programming tools, like a compiler, linker, debugger, etc., that facilitate development of programs written for the same or different hardware. The Raspberry Pi Pico has RP2040 onboard which is a microcontroller based on Arm Cortex M0+ architecture. The detailed steps for installing GNU Embedded Toolchain for Arm in each operating system are provided below (Mac and Windows). Note that CMake will also be installed along with the Arm toolchain. CMake will take care of calling all the necessary programs, from the toolchain, to generate a binary file that will run on the microcontroller.
$ /usr/sbin/softwareupdate --install-rosetta --agree-to-license
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
PATH
environment. Following images show the steps I was asked to perform. $ brew install cmake
$ brew install gcc-arm-embedded
$
symbol, also called a ‘Prompt’, represents start of the line, so don’t type it. The system may ask you to type your password and press ⏎ Enter at some point.
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential