Bad CPU Type Error

Hi, Sorry to start a new thread, but the most relevant one I could find is locked.

First, total Noob.

Trying to use a Uno R3 on a Mac with M1.

Downloaded 2.3.4

Tried to update the board manager with the AT Tiny, which was "successful" but did not fix my issue.

Any help greatly appreciated.

Welcome to the forum

Please provide more details of what you were doing when the problem occurred and exactly what the problem is.

What are you trying to use the Uno R3 to do and how is an AT Tiny is involved ? If the two are connected then how are they connected and powered ?

Why? That has nothing to do with the Uno R3.

Do a screen grab of your Additional boards contents. Click the icon on the right.

Based on an old thread on the same subject, this was recommended. If there is a better one, that supports R3, that would be awesome

The ATtiny board package does not support the Uno R3.

The "Bad CPU type" error indicates that there is a mismatch between the IDE software (or software in the board package) and the MAC CPU. I do not now anything about Macs but there is something called Rosetta. If you search the forum Rosetta that you can find topics where the issue was solved.

@tbc2 An answer to the questions posed in post #2 would be appreciated

Thanks.

I connect the R3 to the Mac, it power on, and I believe has a port.

When I try to upload the "blink" example, I get the error:

fork/exec /Users/tomcarson/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/anon/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: bad CPU type in executable

My initial research led me to the avr-gcc not being compatible with a M1 Mac. I was led to the the AT Tiny by another, now closed, thread asking about the same thing. So if that was wrong, it has nothing to do with the error

Which version of the Arduino IDE version 2.3.4 did you download, the Mac version for Intel or Apple Silicon?

Forget the At Tiny. It is not relevant

  • Connect the Uno to the Mac
  • Verify that a serial port is created
  • Select the created port in the IDE
  • Set "Arduino Uno" as the board in the IDE

Upload the Blink code

If you get an error post it in full here using code tags when you do

Appreciate the help

Here is the port selected:

The Uno R3 is selected.

When I load blink and attempt to upload it to the UNO, I get the following:

fork/exec /Users/anon/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/anon/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: bad CPU type in executable

I downloaded the version for Mac with Apple Silicon

You did the right thing to start a new thread.

The file command will confirm what type of executable it is:

file /Users/anon/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++

Can you post the output?

That is not any board URL I have ever seen.

The msg 'bad cpu type' is saying it is not a Mac Silicone executable.

I have to use a USB hub since the Mac has no USB A ports. Would that affect that?

IDK, but I also have a Mac, NO USB-A, I have a handful of USB-A to USB-C adapters. I have no idea what is inside your HUB.
Your error msg is telling you that the pgm you are executing is NOT a MAC Silcone type.
Did you perhaps used to have an X86 Mac and migrated to a silicone MAC?
If NOT, maybe you downloaded the wrong 2.3.4. In this pic it's the last one.

Sigh. Did you run the command @Bitseeker adviced you to?