Hi PlatformIO Geniuses,
I am trying to do some low level debugging of my firmware for a RaspberryPi Pico for which I am using a prepared RaspberryPi PicoProbe.
I have used the Arduino IDE 2.0 (which now also is based on Electron like VSCode) and this seems to be able to run my code in debug as the OpenOCD toolchain being used by Arduino has all of it’s configurations and dependencies.
When I try to perform a similar debugging exercise using PlatformIO I receive an error message when uploading:
Generating UF2 image elf2uf2 ".pio\build\pico\firmware.elf" ".pio\build\pico\firmware.uf2" Checking size .pio\build\pico\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [== ] 15.1% (used 40696 bytes from 270336 bytes) Flash: [ ] 0.2% (used 4034 bytes from 2097152 bytes) Configuring upload protocol... AVAILABLE: cmsis-dap, jlink, picotool, raspberrypi-swd CURRENT: upload_protocol = raspberrypi-swd Uploading .pio\build\pico\firmware.elf Open On-Chip Debugger 0.11.0+dev-gec0240e6a-dirty (2021-03-09-09:44) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html debug_level: 1 Error: The specified debug interface was not found (bcm2835gpio) The following debug adapters are available: 1: ftdi 2: usb_blaster 3: ft232r 4: presto 5: usbprog 6: openjtag 7: jlink 8: vsllink 9: rlink 10: ulink 11: arm-jtag-ew 12: remote_bitbang 13: hla 14: osbdm 15: opendous 16: aice 17: cmsis-dap 18: kitprog 19: xds110 20: st-link *** [upload] Error 1
My current platformio.ini file contains the following simple configuration:
[env:pico] framework = arduino platform = raspberrypi board = pico debug_tool = raspberrypi-swd upload_protocol = raspberrypi-swd
I am not sure how I can change and configure the OpenOCD tool and would appreciate any insight or help with this as I really like PlatformIO and would not like to move back to the Arduino IDE.
Kind Regards,
Larry