Howdy, new user here. I have my hands on a M4 MacBook, and just downloaded the new IDE - double checked that it's the arm / apple silicon version. Not having much luck - it opens up okay - but on verifying the following sketch:
const int LED = 13
void setup() {
// put your setup code here, to run once:
pinMode(LED, OUTPUT)
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED, HIGH)
delay(1000)
digitalWrite(LED, LOW)
delay(1000)
}
And it throws this error:
fork/exec /Users/philip/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: bad CPU type in executable
Compilation error: fork/exec /Users/philip/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: bad CPU type in executable
I've tried so far:
Re-installing the IDE
Re-installing the Arduino AVR Boards Manager - it's at --v 1.8.6 no errors on install
Machine is brand new and looks like this: Apple M4 Max running Sequoia 15.1
Tried the web IDE and the verify worked but on running the sketch I get this:
/usr/local/bin/arduino-cli compile --fqbn arduino:avr:uno --build-cache-path /tmp --output-dir /tmp/2297617896/build --build-path /tmp/arduino-build-14AF923B430D909A56CA826C5CDB27C3 /tmp/2297617896/new_sketch_1731271672029
[info] Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes.
[info] Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
Flashing with command:/Users/philip/.arduino-create/arduino/avrdude/6.3.0-arduino17/bin/avrdude -C/Users/philip/.arduino-create/arduino/avrdude/6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.usbmodem101 -b115200 -D -Uflash:w:/var/folders/jh/g9zty_5s02lfq7xblpwsvgrc0000gn/T/arduino-create-agent2044670858/new_sketch_1731271672029.hex:i
Start command: fork/exec /Users/philip/.arduino-create/arduino/avrdude/6.3.0-arduino17/bin/avrdude: bad CPU type in executable