Building Cube Orange Model by Simulink
9 views (last 30 days)
Show older comments
Dear developers and users.
I am now working on HITL Simulation with PX4 Cube Orange. I am currently working from the example in the following link (https://jp.mathworks.com/help/supportpkg/px4/ref/hitl-simulink-plant-example.html), but I am having problems with uploading the models.
At method 1; Step3_2 in the example, it says just to click BUILD, DEPLOY & START. However, when I click it, the following error occures.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1565409/image.jpeg)
Generating ELF failed for command "C:\PX4\run-console_Simulink.bat "
(... omission ...)
arm-none-eabi-g++.exe: error: ROMFS/libromfs.a: No such file or directory
PX4 Cygwin returned an error of 1
Are there any other apps than is written in the examples required to run this example? Or, are there some place I have to check?
Thank you for your kind help.
0 Comments
Answers (1)
Arun Mathamkode
on 12 Dec 2023
Other than the Cygwin toolchain and PX4 Firmware sources there are no additional dependencies required to deploy the code from Simulink to PX4 Autopilot. In your case, I would recommend building the cube_orange_default cmake from PX4 Hardware setup screens. You can start the hardware setup by opening the Add-On Manager. In the Add-On Manager, start the hardware setup process by clicking the Setup icon. Make sure that the build is successful in the Build firmware Hardware setup screen. Once the build is successful then try Build Deploy and Start from Simulink
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!