Flash And Run "Hello World; See "Hello World" Usb Output - Raspberry Pi RP2040 Getting Started

Table of Contents

Advertisement

Getting started with Raspberry Pi Pico
Amongst other targets, we have now built:
serial/hello_serial.elf
serial/hello_serial.uf2
usb/hello_usb.elf
usb/hello_usb.uf2
Where
hello_serial
WARNING
If you have not initialised the
work as the SDK will contain no USB functionality.

4.3. Flash and Run "Hello World"

Connect the Raspberry Pi Pico to your Raspberry Pi using a micro-USB cable, making sure that you hold down the
button to force it into USB Mass Storage Mode. Once it is connected release the
BOOTSEL
running the Raspberry Pi Desktop it should automatically mount as a USB Mass Storage Device. From here, you can
Drag-and-drop either the
RP2040 will reboot, unmounting itself as a Mass Storage Device, and start to run the flashed code.
However, although the "Hello World" example is now running, we cannot yet see the text. We need to connect our host
computer to the appropriate stdio interface on the Raspberry Pi Pico to see the output.

4.4. See "Hello World" USB output

If you have dragged and dropped the
Figure 2. Connecting
the Raspberry Pi to
Raspberry Pi Pico via
USB.
With your Raspberry Pi Pico connected directly to your Raspberry Pi via USB, see
installing
minicom
4.3. Flash and Run "Hello World"
, which is used by the debugger
, which can be dragged onto the RP2040 USB Mass Storage Device (UART serial binary)
, which is used by the debugger
, which can be dragged onto the RP2040 USB Mass Storage Device (USB serial binary)
directs
to UART0 on pins GP0 and GP1, and
stdio
submodule in your
tinyusb
or
hello_serial.uf2
hello_usb.uf2
hello_usb.uf2
:
directs
hello_usb
checkout then the USB CDC serial example will not
pico-sdk
onto the Mass Storage Device.
binary, then the "Hello World" text will be directed to USB serial.
to USB CDC serial.
stdio
button and if you are
BOOTSEL
Figure
2, you can see the text by
14

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RP2040 and is the answer not in the manual?

This manual is also suitable for:

Pico

Table of Contents

Save PDF