# Dronecode probe with PX4

**URL:** <https://forum.zubax.com/t/dronecode-probe-with-px4/1689>\
**Category:** Support\
**Tags:** dronecode-probe\
**Created:** [October 27, 2020, 6:58am UTC](https://forum.zubax.com/t/dronecode-probe-with-px4/1689 "2020-10-27T06:58:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Safranek42](https://forum.zubax.com/letter_avatar_proxy/v4/letter/s/a88e57/32.png) [@Safranek42](https://forum.zubax.com/u/Safranek42)\
**Post date:** [October 27, 2020, 6:58am UTC](https://forum.zubax.com/t/dronecode-probe-with-px4/1689/1 "2020-10-27T06:58:27Z")

</div>

Hi,

I have a [Dronecode probe](https://shop.zubax.com/collections/development-tools/products/dronecode-probe-v2-2-jtag-swd-adapter-usb-uart-adapter-with-dcd-m-cable?variant=8797640687715) that I’d like to use to debug PX4 on Holybro Durandal with Eclipse.  
I used [this](https://kb.zubax.com/display/MAINKB/Debugging+with+Eclipse) documentation to set up the debugger, and it runs the program on the flight controller if I start the debugger.

However, when I insert breakpoints (as type “Hardware”), it stops at the breakpoint, and the flight controller starts beeping (no surprise, the program stops during setup). However when I try to step in/through, it jumps back and forth between lines. Also, after a few steps, the program just start running, not stopping at any breakpoints.  
After that, in the “Problems tab” there are couple hundred errors showing.

Probably @pavel-kirienko could help with this?

Thanks in advance for any advice!

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [December 4, 2020, 6:37pm UTC](https://forum.zubax.com/t/dronecode-probe-with-px4/1689/2 "2020-12-04T18:37:13Z")

</div>

Please disable the watchdog if you want single-step debugging.

---

<div class="post-metadata">

**Author:** ![NorryTesi](https://forum.zubax.com/letter_avatar_proxy/v4/letter/n/59ef9b/32.png) [@NorryTesi](https://forum.zubax.com/u/NorryTesi)\
**Post date:** [December 21, 2020, 5:04pm UTC](https://forum.zubax.com/t/dronecode-probe-with-px4/1689/3 "2020-12-21T17:04:50Z")

</div>

Hi…I am attempting to investigate PX4 on my flight regulator (Holybro Durandal) by means of its troubleshoot port with Dronecode test and Eclipse. I have utilized this 3 instructional exercise from the producer, just as the comparing parts from the PX4 documentation.

Presently I can run the debugger and it appears to be running effectively, yet issues emerge when I set breakpoints. It doesn’t appear to stop at any breakpoint, so I can’t continue line-by-line from that point, and it likewise gives mistake messages (a few hundred).

[pcb online ordering](https://onlinequote.7pcb.com/)

---

<div class="post-metadata">

**Author:** ![Safranek42](https://forum.zubax.com/letter_avatar_proxy/v4/letter/s/a88e57/32.png) [@Safranek42](https://forum.zubax.com/u/Safranek42)\
**Post date:** [December 22, 2020, 6:37am UTC](https://forum.zubax.com/t/dronecode-probe-with-px4/1689/4 "2020-12-22T06:37:38Z")

</div>

Hi @NorryTesi,

I have been able to make it more-or-less work with 1) setting the breakpoint properties to “Hardware” (right-click to the breakpoint in the list and in Properties if I remember well) and 2) disable the watchdog. For that you have to modify /boards/holybro/durandal-v1/nuttx-config/nsh/defconfig file (CONFIG\_WATCHDOG parameter) and compile the firmware.

But I would suggest try using VSCode: [Visual Studio Code IDE · PX4 Developer Guide](https://dev.px4.io/master/en/setup/vscode.html). It worked for me the first time I tried without any settings. If you use Dronecode probe, you have to launch the debugger with the “Blackmagic probe” option, not the “JLink”.
