フィルターのクリア

Unable to install UAV Toolbox Support Package for PX4 Autopilots on Ubuntu 20

5 ビュー (過去 30 日間)
Tanay Kumar
Tanay Kumar 2022 年 8 月 30 日
I was trying to istall UAV Toolbox Support Package for PX4 Autopilots on Ubuntu 20. I followed every step as given in the MATLAB documentaion but am unable to get past the Setting up PX4 Toolchain step. I get an error saying the toolchain isn't installed and if you've installed reboot the system. Despite rebooting the PC or repeating the steps multiple times I'm still getting an error.
I am confused whether Px4 support tool is unavailabe on Ubuntu 20 as the steps given here specifically mention Ubuntu 18 or this is some other issue. Any kind of help is appreciated.
Thank you!
  2 件のコメント
Manoj Velmurugan
Manoj Velmurugan 2022 年 9 月 1 日
Likely gcc arm toolchain is not installed or it is not in the path.
  1. Have you tried running ubuntu.sh script as explained here?
  2. Check the output of arm-none-eabi-gcc --version in the bash shell. If this fails, then the toolchain is either not present in the path or is not installed.
  3. Print path variable using echo $PATH. In my setup, the path appears as /opt/gcc-arm-none-eabi-9-2020-q2-update
Tanay Kumar
Tanay Kumar 2022 年 9 月 1 日
Thanks for your reply
  1. Yes, I followed the exact same steps as given in the instructions.
  2. I got this output: arm-none-eabi-gcc (15:9-2019-q4-0ubuntu1) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
  3. I tried runing echo $PATH in the bash shell and the path something as /opt/gcc-arm-none-eabi-7-2017-q4-major/bin:/home/...
Have you installed this in Ubuntu 20 because the setup instructions specifically mention Ubuntu 18?

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

回答 (1 件)

Sushranth Prakash Hebbar
Sushranth Prakash Hebbar 2022 年 9 月 5 日
The likely cause of this issue is the Ubuntu version. It should be Ubuntu 18.04 LTS as mentioned in the following documentation:
Another cause for this issue could be the version of 'arm-none-eabi-gcc' that is installed in your system.
Execute the following command in the ubuntu terminal to get the current version that is installed in your system.
$ arm-none-eabi-gcc -dumpversion
The output of this should be 7.2.1. Otherwise, an incorrect version or multiple different versions of 'arm-none-eabi-gcc' have been installed in your system.
You can execute the 'which' command in the ubuntu terminal to find all the other locations of 'arm-none-eabi-gcc' and uninstall them.
Then, follow the steps from https://www.mathworks.com/help/releases/R2021b/supportpkg/px4/ug/setting-px4-toolchain-ubuntu.html again and check if the installation succeeds.

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by