|
1 | 1 | == Install tools
|
2 | 2 |
|
3 |
| -To use the Debug Probe, install the following tools. |
| 3 | +To use the Debug Probe, OpenOCD and the GNU Project Debugger (GDB) are required. An Integrated Development Environment (IDE) may also be useful. |
4 | 4 |
|
5 |
| -=== Install OpenOCD |
| 5 | +On Raspberry Pi OS, most Linux variants, macOS, and Microsoft Windows, it is recommended to install our VS Code extension. This extension bundles OpenOCD, ARM toolchains, GDB, and register definitions for Pico-series microcontrollers. |
6 | 6 |
|
7 |
| -You need to install OpenOCD. |
| 7 | +See Chapter 3 of our https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf[Getting Started with Raspberry Pi Pico] guide. |
8 | 8 |
|
9 |
| -To install OpenOCD, run the following command in a terminal: |
| 9 | +Alternatively, tools can be manually installed by following Appendix C in the guide. |
10 | 10 |
|
11 |
| -[source,console] |
12 |
| ----- |
13 |
| -$ sudo apt install openocd |
14 |
| ----- |
| 11 | +NOTE: Manual installation of the tools on Windows is not recommended. |
15 | 12 |
|
16 |
| -To run OpenOCD, use the `openocd` command in your terminal. |
17 |
| - |
18 |
| -==== Install OpenOCD on macOS |
19 |
| - |
20 |
| -First, install the https://brew.sh/[Homebrew] package manager: |
21 |
| - |
22 |
| -[source,console] |
23 |
| ----- |
24 |
| -$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" |
25 |
| ----- |
26 |
| - |
27 |
| -To install OpenOCD on macOS, run the following commands: |
28 |
| - |
29 |
| -[source,console] |
30 |
| ----- |
31 |
| -$ brew install openocd |
32 |
| ----- |
33 |
| - |
34 |
| -To run OpenOCD, use the `openocd` command in your terminal. |
35 |
| - |
36 |
| -=== Install GDB |
37 |
| - |
38 |
| -We also need to install the GNU debugger (GDB). |
39 |
| - |
40 |
| -==== Linux |
41 |
| - |
42 |
| -Install `gdb-multiarch`: |
43 |
| - |
44 |
| -[source,console] |
45 |
| ----- |
46 |
| -$ sudo apt install gdb-multiarch |
47 |
| ----- |
48 |
| - |
49 |
| -==== macOS |
50 |
| - |
51 |
| -Run the following command to install `gdb`: |
52 |
| - |
53 |
| -[source,console] |
54 |
| ----- |
55 |
| -$ brew install arm-none-eabi-gdb |
56 |
| ----- |
57 |
| - |
58 |
| -You can safely ignore the request for "special privileges" messages on installation. |
59 |
| - |
60 |
| -==== MS Windows |
61 |
| - |
62 |
| -GDB is available as part of our https://github.com/raspberrypi/pico-setup-windows/releases/latest[Pico setup for Windows installer]. It is also included in the https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads[Arm GNU Toolchain Downloads]. |
63 |
| - |
64 |
| -Alternatively information about manual installation can be found in Chapter 9 and Appendix A of our https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf[Getting Started with Raspberry Pi Pico] book. |
65 |
| - |
66 |
| -NOTE: Manual installation of GDB on Windows is not recommended. |
0 commit comments