UAV Toolbox Support Package for PX4 Autopilots - Hardware Setup Build PX4 Firmware Failed

조회 수: 4 (최근 30일)
I cloned the code of V1.10.2 using Matlab 2022a and successfully verified the code. However, during the firmware build process, an error was reported:
"Only for EXPERTS:
platforms/nuttx/NuttX/nuttx submodule is not in the recommended version.
Hit 'y' and <ENTER> to continue the build with this version. Hit <ENTER> to resolve manually.
Use [94mgit add platforms/nuttx/NuttX/nuttx && git commit -m 'Updated platforms/nuttx/NuttX/nuttx' [0m to choose this version (careful!)"
After entering "y'or 'u'or‘Updated platforms/nuttx/NuttX/nuttx'’ enter,( I have tried all three commands)continue running and it will display: 'Build aboard.'
[31mChecked platforms/nuttx/NuttX/apps submodule, ACTION REQUIRED: [0m
Different commits:
* platforms/nuttx/NuttX/apps 13eeff0ec... e37940d85 (2026):...
Then it displays: 'Only for Experiences:'
msg/tools/gencpp submodule is not in the recommended version.
Hit 'y' and <ENTER> to continue the build with this version. Hit <ENTER> to resolve manually.
Use [94mgit add msg/tools/gencpp && git commit -m 'Updated msg/tools/gencpp' [0m to choose this version (careful!)”
Then I repeat the operation by entering y or u and clicking enter. The MATLAB command line then reports: src/lib/ecl submodule is not in the recommended version...
The final MATLAB command line displays: 'Build abort.'
-- Configuring incomplete, errors occurred!
See also "/cygdrive/c/PX4/home/Firmware/build/px4_fmu-v5_default/CMakeFiles/CMakeOutput.log".
See also "/cygdrive/c/PX4/home/Firmware/build/px4_fmu-v5_default/CMakeFiles/CMakeError.log".
How should I proceed? Thank you very much

답변 (1개)

Arun Mathamkode
Arun Mathamkode 2024년 10월 17일
PX4 is not recommending the Cygwin based workflow anymore. The toolchain was previously recommended, but does not work with PX4 v1.12 and later due to packaging issues. I highly recommend upgrading to latest MATLAB versions R2024a/R2024b, where PX4 v1.14 is supported with the PX4 prefferfed WSL workflow.

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by