EasyManua.ls Logo

Raspberry Pi Pico Series - Manually Configure Your; Get the SDK and Examples; Install the Toolchain; Enable UART Serial Communications

Raspberry Pi Pico Series
54 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
$ sudo reboot
Once your Raspberry Pi has rebooted, you can open Visual Studio Code in the "Programming" menu and follow the
instructions from Chapter 4.
Manually Configure your Environment
Get the SDK and examples
The Pico Examples repository provides a set of example applications written using the SDK. To clone these repositories,
create a pico directory where you can store pico-related files. The following commands create a subdirectory named
pico in your home directory:
$ mkdir ~/pico
Then, clone the pico-sdk and pico-examples git repositories:
$ cd ~/pico
$ git clone https://github.com/raspberrypi/pico-sdk.git --branch master
$ cd pico-sdk
$ git submodule update --init
$ cd ..
$ git clone https://github.com/raspberrypi/pico-examples.git --branch master
Install the Toolchain
To build the applications in pico-examples, you’ll need to install some extra tools. To build projects you’ll need CMake, a
cross-platform tool used to build the software, gcc, and the GNU Embedded Toolchain for Arm. Run the following
command to install these dependencies:
$ sudo apt update
$ sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential
Ubuntu and Debian users might additionally need to do:
Êapt install g++ libstdc++-arm-none-eabi-newlib
Enable UART serial communications
To enable UART serial communications on your development device. To do so on a Raspberry Pi running Raspberry Pi
OS, run raspi-config:
Getting started with Raspberry Pi Pico-series
Manually Configure your Environment 33

Table of Contents

Related product manuals