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
Show older comments
I try to run an example in mathwork(px4demo_uORBRead), my board is pixhawk6C.
openExample('px4/GettingStartedWithUORBBlocksPX4SPKGExample','supportingFile','px4demo_uORBRead')
Answers (1)
Pratyush Swain
on 27 Mar 2025
0 votes
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.
Categories
Find more on PX4 Autopilots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!