Clear Filters
Clear Filters

Error in PX4 SITL with UAV Toolbox Support Package for PX4 Autopilots

3 views (last 30 days)
I'm performing SITL on Windows 11 with jmavsim using UAV Toolbox Support Package for PX4 Autopilots but I got an error:
On the diagnostic view I got:
Top model targets built:
Model Action Rebuild Reason
px4_openloop Code generated. Code generation information file does not exist.
1 of 1 models built (0 models already up to date)
Build duration: 0h 4m 26.003s
action: EXT_INIT
Creating Target Handler (XCP on TCP/IP)...
Build directory: D:\model validation\px4_openloop_ert_rtw
Target name:
Target port: 17725
Connecting to the target...
External Mode Open Protocol Connect command failed
Caused by:
Could not connect to target application: XCP TCP/IP error: Connect failed
Component:Simulink | Category:Block diagram error
Unable to connect to the 'PX4 Host Target' target for 'px4_openloop'.
Component:Simulink | Category:Block diagram error
On the cmd, I got:
The first time I run the Simulink model,it worked but when I tried to run it again without changing nothing , this error this displayed.

Accepted Answer

Narvik on 24 Aug 2023
I understand that you faced a build issue while performing SITL on Windows 11 with jMAVSim using UAV Toolbox Support Package for PX4 Autopilots. This may occur if you run ‘Build Load and Run’ instead of running Monitor and Tune operation.
I advise you to follow the instructions provided under Task 3 in the ensuing documentation:
You can also refer to the following MATLAB answer for more information :
Hope this helps!

More Answers (0)




Community Treasure Hunt

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

Start Hunting!