필터 지우기
필터 지우기

Building Cube Orange Model by Simulink

조회 수: 4 (최근 30일)
Hiroki U.
Hiroki U. 2023년 12월 11일
댓글: Hiroki U. 2023년 12월 15일
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.

답변 (1개)

Arun Mathamkode
Arun Mathamkode 2023년 12월 12일
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
Hiroki U.
Hiroki U. 2023년 12월 15일
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.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by