In Circuit Debugging - OpenKNX/OpenKNX GitHub Wiki
Currently in the OpenKNX project two ICEs are used:
-
The Segger J-Link Mini Edu, availible for 40€ at AK MODUL-BUS
-
PicoProbe
both work "out-of-the-box" with PLattform I/O, use
debug_tool = jlink
or debug_tool = picoprobe
in the plattformio.ini
Hints
- Flashing an empty RP2040 with J-Link seems to be not possible
- J-Link does not supply 3.3V, device must be powered seperately
- be carefull with potential differences, use USB isolators
Ozone
Ozone ist ein Debug-Tool von Segger für die JLINK Debugger. Es ist sehr umfangreich und funktioniert ohne viel Konfiguration. Es kann direkt ein ELF-File geladen und debugged werden.
Pfad Ersetzung
Da die Quellen des Arduino-Pico Core und Pico-SDKs teilweise vorkompiliert sind, stimmen die Pfade im ELF-File teilweise nicht.
Mit
Project.AddPathSubstitute ("/home/earle/Arduino/hardware/pico/rp2040/","C:\Users\<yourusername>\.platformio\packages\framework-arduinopico\");
kann abgeholfen werden.
Dieser Befehl kann entweder in einer jdebug-Projektdatei von Ozone hinterlegt werden oder in die Konsole von Ozone eingegeben werden.