Failing to upload to Arduino from Mac OS


#1

Hi,

I’m new to mblock. I have an old MacBook Pro with Mac OS X 10.15.6 Catalina.

I’m trying to upload a sketch to my Arduino Uno card.

I have mLink2 v2.1.1 installed and I use the web-based client for mBlock
from Chrome (same problem using Safari or Firefox). I can connect
the card, however I receive an error after the report inserted below.

I also cannot upload a new version of the firmware. It starts to download
but stops after 2 %.

Can someone please help?

Best,
T

start processing code…
processing code by middleware of pinMode
Arduino server connected.
Arduino compile…
variantPath:/app/src/external/arduino/avr-library/variants/standard
avr-toolchain/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"/app/src/external/arduino/avr-library/variants/standard" -I"avr-library/cores/arduino" -I"arduino-libraries/makeblock/src/" -I"arduino-libraries/makeblock/src/utility/avr/" -I"avr-library/libraries/Wire/src/utility/" -I"avr-library/libraries/Wire/src/" -I"avr-library/libraries/EEPROM/src/" -I"avr-library/libraries/SPI/src/" -I"avr-library/libraries/SoftwareSerial/src/" -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/" “/root/mblock-avr/temp/build/code.cpp” -o “/root/mblock-avr/temp/build/code.o”
avr-toolchain/bin/avr-gcc -w -Os -Wl,–gc-sections -mmcu=atmega328p -o “/root/mblock-avr/temp/build/out.elf” “/root/mblock-avr/temp/build/code.o” “/app/src/external/arduino/mbot/libmbot.a” -lm
avr-toolchain/bin/avr-objcopy -O ihex -R .eeprom “/root/mblock-avr/temp/build/out.elf” “/root/mblock-avr/temp/build/out.hex”
Arduino compile finish.
Arduino server disconnected.
processing code by middleware of arduino
processing code completed
get code upload driver by stk500v1
start uploading…


#2

Here are the log in a possibly better format:

start processing code…

processing code by middleware of pinMode

Arduino server connected.

Arduino compile…

variantPath:/app/src/external/arduino/avr-library/variants/standard

avr-toolchain/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"/app/src/external/arduino/avr-library/variants/standard" -I"avr-library/cores/arduino" -I"arduino-libraries/makeblock/src/" -I"arduino-libraries/makeblock/src/utility/avr/" -I"avr-library/libraries/Wire/src/utility/" -I"avr-library/libraries/Wire/src/" -I"avr-library/libraries/EEPROM/src/" -I"avr-library/libraries/SPI/src/" -I"avr-library/libraries/SoftwareSerial/src/" -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/" “/root/mblock-avr/temp/build/code.cpp” -o “/root/mblock-avr/temp/build/code.o”

avr-toolchain/bin/avr-gcc -w -Os -Wl,–gc-sections -mmcu=atmega328p -o “/root/mblock-avr/temp/build/out.elf” “/root/mblock-avr/temp/build/code.o” “/app/src/external/arduino/mbot/libmbot.a” -lm

avr-toolchain/bin/avr-objcopy -O ihex -R .eeprom “/root/mblock-avr/temp/build/out.elf” “/root/mblock-avr/temp/build/out.hex”

Arduino compile finish.

Arduino server disconnected.

processing code by middleware of arduino

processing code completed

get code upload driver by stk500v1

start uploading…