Skip to main content

Debug

Debugging on Pixhawk

Set CLI_ENABLED

  • Set CLI_ENABLED parameter to Enabled
  • Otherwise, the NSH console won't start at boot.

Connect to Pixhawk

Use FTDI USB to Serial Adopter or cable and connect it to Serial 4/5 port on Pixhawk. Only the GND, TX, and RX for serial 5 are needed to access NSH.

Once connected through the debug port, login to Nuttex Shell using screen.

screen /dev/tty.usbserial-Axxxxxx 57600 8N1

Once logged in, you can use unix commands like ls, ps, top, etc.

To kill the screen

ctl-a k

Example

In order to check uavcan status

uavcan status

Reference