Datasheet

Table Of Contents
9.2.5. Flashing and Running "Hello World"
Connect the Raspberry Pi Pico to your Raspberry Pi using a micro-USB cable, making sure that you hold down the
BOOTSEL button to force it into USB Mass Storage Mode. The board should automatically appear as a external drive. You
can now drag-and-drop the UF2 binary onto the external drive.
The Raspberry Pi Pico will reboot, and unmount itself as an external drive, and start running the flashed code.
As we did in Chapter 4 you can build the Hello World example with stdio routed either to USB CDC (Serial) or to UART0
on pins GP0 and GP1. No driver installation is necessary if you’re building with USB CDC as the target output, as it’s a
class-compliant device.
9.2.5.1. UART output
Alternatively if you want to you want to connect to the Raspberry Pi Pico standard UART to see the output you will need
to connect your Raspberry Pi Pico to your computer using a USB to UART Serial converter, for example a SparkFun FTDI
Basic board, see Figure 21.
Figure 21. Sparkfun
FTDI Basic adaptor
connected to the
Raspberry Pi Pico
So long as you’re using a recent version of Windows 10, the appropriate drivers should already be loaded. Otherwise see
the manufacturers' website for FTDI Chip Drivers.
Then if you don’t already have it, download and install PuTTY. Run it, and select "Serial", enter 115,200 as the baud rate
in the "Speed" box, and the serial port that your UART converter is using. If you don’t know this you can find out using
the chgport command,
C:> chgport
COM4 = \Device\ProlificSerial10
COM5 = \Device\VCP0
this will give you a list of active serial ports. Here the USB to UART Serial converter is on COM5.
Getting started with Raspberry Pi Pico
9.2. Building on MS Windows 44