Hi all,
I received some digispark attiny85 microcontrollers today, but am not able to compile code for them. I have installed the boards in the boards manager. When I try to compile, I get this error:
fork/exec /Users/xxxxxxx/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 am running this on a Macbook pro with MacOS Catalina 10.15.4. Arduino IDE is version 1.8.13
Any help with this would be appreciated. Thank you!
Update: I can now compile however the code will not upload to the board. I have plugged it in when is says but it does not seem to recognise the board. (It does supply it with power)
I suppose you are no longer following this question, but just in case someone else lands here.
Do you have the board that plugs directly into the USB port of your Mac?
If you are using one with the mini-USB port connected with a cable, make sure to have a cable that uses all the pins. Most cheap cables only provide power.
Do you see your device in the Tools | Port menu of the Arduino IDE? It should show as /dev/cu., for example: /dev/cu.SLAB_USBtoUART. It could be an issue with the device driver and macOS version