I am trying to upload some code in Arduino, but I keep getting an error message "error compiling for board digispark (default - 16.5mhz). The error message is as shown below...
fork/exec /Users/dhibbert/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++: bad CPU type in executable
Error compiling for board Digispark (Default - 16.5mhz).
I guess you're using a Mac. I'm not a Mac user but at a certain point Apple decided to only support 64 bit applications. The bad CPU type in executable indicates (to my knowledge) that you're running a 32 bit version of the avr-g++. If that is indeed the case, updating to IDE 1.8.9 1.8.19 should solve the problem.
4.8.1-arduino5/bin/avr-g++ seems to indicate that you have a very old version of avr-g++ and hence of the IDE.
Hi, thanks for the input! How would I update to IDE 1.8.9? At the top of the screen on the platform it states 1.8.9, so I thought I was using the latest version...
Hi, for the port, I only have two options "/dev/cu.BLTH" and "/dev/cu.Bluetooth-Incoming-Port." I have tried using both, but neither solved the issue... Here is a photo of the error just for clarification...
Your screenshot is hard to read. Please post error messages as text. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Do that then paste the error message into a post as text.
Arduino: 1.8.19 (Mac OS X), Board: "Digispark (Default - 16.5mhz)"
fork/exec /Users/dhibbert/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++: bad CPU type in executable
Error compiling for board Digispark (Default - 16.5mhz).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.