Troubleshooting Build Error in MAC Apple Silicon Processor for Simulink Support Package for Arduino Hardware

3 ビュー (過去 30 日間)
Build for any Target Hardware selected fails for MAC Apple Silicon Processor with the following error "bad CPU Type in executable".

回答 (1 件)

Monalisha
Monalisha 2024 年 8 月 6 日
The encountered error is because your MAC Apple Silicon host computer doesn't have all the tools that Arduino Developement software requires. To resolve the issue program named Rosetta needs to be installed.
Steps for manually installing Rosetta:
  1. Open Terminal (instructions here).
  2. Type the following command in the Terminal window:
softwareupdate --install-rosetta.
3. Press the Enter key.
4. Accept the license agreement with Apple.
5. Wait for the installation to finish.
You can also skip the license agreement by providing an additional flag:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by