15
|
1 Build:
|
|
2 cd build
|
|
3 cmake -DPICO_SDK_PATH=$HOME/projects/pico-sdk \
|
|
4 -DPICO_TOOLCHAIN_PATH=/Applications/ArmGNUToolchain/12.2.rel1/arm-none-eabi/bin \
|
|
5 -DCMAKE_BUILD_TYPE=Debug \
|
|
6 ..
|
|
7 make -j 8
|
|
8
|
|
9 Debug:
|
|
10 https://github.com/majbthrd/pico-debug/blob/master/howto/openocd.md
|
|
11
|
|
12 openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -s tcl -c "adapter speed 5000"
|
|
13 /Applications/ArmGNUToolchain/12.2.rel1/arm-none-eabi/bin/arm-none-eabi-gdb -ex "target ext :3333" modulator.elf
|
|
14 load
|
|
15 run
|
|
16
|
|
17 Debug probe appears as a composite device - the CMSIS debug interface and a CDC serial port which
|
|
18 has the UART of the debugee connected.
|
|
19
|
|
20
|