External Mode Open Protocol Connect command failed Reason: Unable to connect to target application: XCP internal error: timeout expired, in response to XCP CONNECT command

I try to run an example in mathwork(px4demo_uORBRead), my board is pixhawk6C.
openExample('px4/GettingStartedWithUORBBlocksPX4SPKGExample','supportingFile','px4demo_uORBRead')

Answers (1)

Hi w,
I recommend going through the following discussions in the forum where you can find some insights and direction:
Also make sure to check your serial communication configuration like:
1. Baud Rate Settings: Baud rate configured in Simulink should baud rate expected by the Pixhawk 6C
2. COM Port Assignent: Verify that the COM port assigned to the Pixhawk 6C is correctly specified in Simulink's External mode settings.
Hope this helps.

Asked:

w
w
on 25 Mar 2025

Answered:

on 27 Mar 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!