I cannot get a simple program to upload to the Arduino on an mBot Ranger. I am able to run the program in Live mode and have changed the event block to the “when mBot Ranger(Auriga) starts up” block.
Here is the error code:
start processing code…
avr-toolchain/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"/Applications/Makeblock/IdeServicePlus/app/external/arduino/avr-library/variants/mega" -I"avr-library/cores/arduino" -I"arduino-libraries/makeblock/src" -I"arduino-libraries/makeblock/src/utility/avr" -I"avr-library/libraries/Wire/utility" -I"avr-library/libraries/Wire" -I"avr-library/libraries/SoftwareSerial" -I"arduino-libraries/arduino/WiFi/src/" -I"arduino-libraries/arduino/SD/src/" -I"arduino-libraries/arduino/Bridge/src/" -I"arduino-libraries/arduino/Temboo/src/" -I"arduino-libraries/arduino/Servo/src/" -I"arduino-libraries/arduino/Ethernet/src/" -I"arduino-libraries/arduino/TFT/src/" -I"arduino-libraries/arduino/SpacebrewYun/src/" -I"arduino-libraries/arduino/LiquidCrystal/src/" -I"arduino-libraries/arduino/GSM/src/" “/Users/DevFamLT/mblock-avr/temp/build/src/MeEncoderMotorDriverV2.cpp” -o “/Users/DevFamLT/mblock-avr/temp/build/src/MeEncoderMotorDriverV2.o”
Command failed: avr-toolchain/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"/Applications/Makeblock/IdeServicePlus/app/external/arduino/avr-library/variants/mega" -I"avr-library/cores/arduino" -I"arduino-libraries/makeblock/src" -I"arduino-libraries/makeblock/src/utility/avr" -I"avr-library/libraries/Wire/utility" -I"avr-library/libraries/Wire" -I"avr-library/libraries/SoftwareSerial" -I"arduino-libraries/arduino/WiFi/src/" -I"arduino-libraries/arduino/SD/src/" -I"arduino-libraries/arduino/Bridge/src/" -I"arduino-libraries/arduino/Temboo/src/" -I"arduino-libraries/arduino/Servo/src/" -I"arduino-libraries/arduino/Ethernet/src/" -I"arduino-libraries/arduino/TFT/src/" -I"arduino-libraries/arduino/SpacebrewYun/src/" -I"arduino-libraries/arduino/LiquidCrystal/src/" -I"arduino-libraries/arduino/GSM/src/" “/Users/DevFamLT/mblock-avr/temp/build/src/MeEncoderMotorDriverV2.cpp” -o “/Users/DevFamLT/mblock-avr/temp/build/src/MeEncoderMotorDriverV2.o” /bin/sh: avr-toolchain/bin/avr-g++: Bad CPU type in executable
Failed to compile file src/MeEncoderMotorDriverV2.cpp
arduino build failed.
Here is the program:
Mac is running Catalina