How do I complete the set up for PX4 Toolchain in Linux?

2 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2019 年 9 月 9 日
コメント済み: Ankur Bose 2021 年 9 月 24 日
I have completed the steps mentioned in Setup the PX4 Toolchain screen on my Linux computer. However, I am still unable to move forward to the next screen. On clicking the "Next >" button, I get the following error:

採用された回答

MathWorks Support Team
MathWorks Support Team 2019 年 9 月 9 日
One of the reasons this issue could occur is if the default shell of your computer is not a bash shell. First, ensure that you have followed the instructions mentioned in the documentation to setup the PX4 toolchain on Linux:
On clicking "Next >" after the installation completes successfully and if you see the above error, then check the default shell on your computer by running the following command on your terminal.
>> echo $SHELL
If the above command returns any shell (e.g., "/bin/tcsh") apart from bash shell (/bin/bash), then change the default shell to "/bin/bash".
You can also run the above command in MATLAB Command Prompt:
>> !echo $SHELL
Now the process must be launched again. Close the Hardware Setup Screens that are currently open. Open the Hardware Setup Screens again from the Add-On manager: Home > Add-Ons > Manage Add-Ons. Click the Set Up button "Next >" in the Embedded Coder Support Package for PX4 Autopilots. This should solve the issue and you will be able to move forward with the screens.
  1 件のコメント
Ankur Bose
Ankur Bose 2021 年 9 月 24 日
Run "arm-none-eabi-gcc -dumpversion" in your Ubuntu Terminal which will return the current gcc toolchain version on your path. From R2020a to R2021b as of today, the expected version is 7.3.1. If you get any other version by running "arm-none-eabi-gcc -dumpversion", it indicates that you have some other gcc versions in your path. Remove them and run the Toolchain setup instructions in Ubuntu again to get the correct gcc.

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by