Running "Hello Usb" On The Raspberry Pi Pico - Raspberry Pi RP2040 Getting Started

Table of Contents

Advertisement

Getting started with Raspberry Pi Pico
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
]
27 }
NOTE
You may have to amend the
Pico Examples:
https://github.com/raspberrypi/pico-examples/tree/master/ide/vscode/settings.json
 1 {
 2
// These settings tweaks to the cmake plugin will ensure
 3
// that you debug using cortex-debug instead of trying to launch
 4
// a Pico binary on the host
 5
"cmake.statusbar.advanced": {
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
},
19
"cmake.buildBeforeRun": true,
20
"C_Cpp.default.configurationProvider":
21 }

7.3.1. Running "Hello USB" on the Raspberry Pi Pico

7.3. Debugging a Project
// This may need to be arm-none-eabi-gdb depending on your system
"gdbPath" : "gdb-multiarch",
"device": "RP2040",
"configFiles": [
"interface/raspberrypi-swd.cfg",
"target/rp2040.cfg"
],
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
"runToMain": true,
// Work around for stopping at main on restart
"postRestartCommands": [
"break
main",
"continue"
]
}
in launch.json if your gdb is called
gdbPath
"debug": {
"visibility":
"hidden"
},
"launch": {
"visibility":
"hidden"
},
"build": {
"visibility":
"hidden"
},
"buildTarget": {
"visibility":
"hidden"
}
arm-none-eabi-gdb
Lines 1 - 21
"ms-vscode.cmake-tools"
instead of
gdb-multiarch
28

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