Arduino未编译-可执行文件中的CPU类型错误

问题描述

最近我正尝试在Arduino上上传一些代码,并收到此错误:

****Arduino: 1.8.9 (Mac OS X),Board: "Arduino/Genuino Uno"

fork/exec /Users/Gu/Desktop/Every single yhing/coding stuff/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++: bad CPU type in executable
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.****

我很快了解到,这是由于macOS更新Catalina不再支持32位应用程序,而avr-g ++钥匙串工具是通过32位进程运行的。

如果有人有解决此问题的解决方案,请协助我。

解决方法

在尝试为ESP8266进行IDE编译时遇到了同样的问题,我关注了Arduino论坛中的链接:

https://forum.arduino.cc/index.php?topic=620175.0

长话短说,我将Arduino IDE更新为1.8.13版,并且在Catalina上对我有用。

,

对我来说,它在Catalina上的工作方式是:

  • 将Arduino IDE更新到1.8.13
  • 在IDE内,将“ Arduino AVR板”更新到最新版本(在Mac上,工具->板:“ xxxx”->板管理器...-> Arduino AVR板)

Access to Boards Manager in the IDE Arduino AVR Boards update location

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...