Building Cube Orange Model by Simulink

3 vues (au cours des 30 derniers jours)
Hiroki U.
Hiroki U. le 11 Déc 2023
Commenté : Hiroki U. le 15 Déc 2023
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.
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.

Réponses (1)

Arun Mathamkode
Arun Mathamkode le 12 Déc 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
  1 commentaire
Hiroki U.
Hiroki U. le 15 Déc 2023
Thank you for the comment!
I tried to set up my hardware in the Add-On manager. At "Build PX4 Firmware", it seems to seccess, but in the next "Test Connection", it says that there's no firmware image.
I have one thing concernd, when "Build PX4 Firmware", although it says it's successful, the following coments were on the command window.
[1301/1327] Linking CXX static library src/modules/mavlink/libmodules__mavlink.a
FAILED: external/Stamp/px4io_firmware/px4io_firmware-build external/Build/px4io_firmware/cubepilot_io-v2_default.elf
cd /cygdrive/c/PX4/toolchain/cygwin64/bin/mypx4/Firmware/build/cubepilot_cubeorange_default/external/Build/px4io_firmware && /usr/bin/cmake.exe --build .
ninja: build stopped: subcommand failed.
Is there anything I can do for this situation?
Thank you for your kind help.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by