Unable to debug ardupilot examples


I’m very interested in the ArduPilot firmware.
About 10 years ago, I was able to upload an ArduPilot example sketch to the APM board and could easily debug it with USB. However, with the Pixhawk, I find it very difficult.

I followed the instructions here:
[Library Example Sketches — Dev documentation]

You can see what I did in my video:

After successfully uploading the firmware, I entered this command:

mavproxy.py --setup --master /dev/serial/by-id/usb-3D_Robotics_PX4_FMU_v2.x_0-if00

However, I couldn’t debug it.



Hello. Your video shows the ArduPilot firmware debugging, which includes the MAVLink system.

However, the example does not include MAVLink code…

I was able to debug using PowerShell with the command below.

but it is not perfect yet. using Putty is the simplest way, but I’m finding other ways to acheive this.

The documentation does not cover this, even though it is intended for beginners.

I will request to edit the wiki soon.

$port = new-Object System.IO.Ports.SerialPort COM8,115200,None,8,one
while ($true) {
    $data = $port.ReadLine()
    Write-Host $data