MATLAB: Launch NSH terminal for debugging

Embedded Codermavlinknshpixhawkpx4qgc

I am unable to connect my Pixhawk board to QGC for debugging purpose, after using it with Embedded Coder Support package for PX4 Autopilots. I need to connect to NSH terminal. I was able to do it before using the Support package.

Best Answer

QGC will not be able to connect to the Pixhawk board because the Mavlink is not enabled on USB port of the Pixhawk board in RC.TXT, which is added to the SD card as mentioned in:
To enable Mavlink on USB port, and therefore connect to QGC, please follow the instructions mentioned here:
Note that once Mavlink is enabled on USB port, you cannot use external mode over USB in Simulink with the Pixhawk board.
You can choose any other serial port (for example, /dev/ttyS6) to run the Simulink model in External mode. However, in this case, you may need additional serial to USB converter.