Compiling software for the Raspberry Pi Pico on an Mac with an M1 Pro processor isn't possible with the the latest version of the ARM toolchain (11.2).
This repo makes it easy to get up and running by packaging the Homebrew formula for the previous version of the ARM toolchain, the Pico SDK and a hello world application.
brew tap clowder/rpi-pico-macos-starter https://github.com/clowder/rpi-pico-macos-starter.git
brew install --cask clowder/rpi-pico-macos-starter/gcc-arm-embedded
brew install minicom
-
git clone https://github.com/clowder/rpi-pico-macos-starter.git pico
-
cd pico
-
cmake -B build/
-
make -C build/
-
The firmware
build/hello_world.uf2
can now be loaded on to your Pico. Press the "BOOTSEL" button on the device while connecting it via USB, drag and drop the firmware into the device in the Finder. The device will restart automatically. -
Connect to the device with minicom like
minicom -D /dev/tty.usbmodemXXXX
whereXXXX
. Using MacOS's default shell zsh it's easiest to type the command by hand and use tab-completion for the final part.To exit minicom type
<esc>-z
thenq
.