10.1.1.5. Creating a Run configuration
In order to run or debug code in Eclipse you need to set up a Run Configuration. This sets up all the information needed
to identify the code to run, any parameters, the debugger, source paths and SVD information.
From the Eclipse Run menu, select
Run Configurations. To create a debugger configuration, select GDB OpenOCD Debugging
option, then select the New Configuration button.
Figure 23. Creating a
new Run/Debug
configuration in
Eclipse.
10.1.1.5.1. Setting up the application to run
Because the pico-examples build creates lots of different application executables, you need to select which specific one
is to be run or debugged.
On the
Main tab of the Run configuration page, use the Browse option to select the C/C++ applications you wish to run.
The Eclipse build will have created the executables in sub folders of the Eclipse project folder. In our example case this
is
…/pico-examples-eclipse/<name of example folder>/<optional name of example subfolder>/executable.elf
So for example, if we running the LED blink example, this can be found at:
…/pico-examples-eclipse/blink/blink.elf
Getting started with Raspberry Pi Pico
10.1. Using Eclipse 48