Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS X High Sierra - Uno Wifi Network Upload Fails #6649

Closed
neilfx1 opened this issue Aug 23, 2017 · 6 comments
Closed

MacOS X High Sierra - Uno Wifi Network Upload Fails #6649

neilfx1 opened this issue Aug 23, 2017 · 6 comments
Labels
Component: Uploading Uploading programs to an Arduino board Type: Bug
Milestone

Comments

@neilfx1
Copy link

neilfx1 commented Aug 23, 2017

Whenever I try to do a network upload to one of my Arduino Uno Wifi boards using 1.8.3 or 1.8.4 in MacOS X High Sierra, it fails with an error message. I'm not sure if this message varies but its consistent every time - I can upload to the boards perfectly using the Windows version of the software so I have a workaround but it would be good if you could take a look at this?

The error message after compiling and preparing to upload is as follows (it doesn't matter what I try to upload to any of my 3 Uno WiFi boards - this is the blink example) :-

the selected serial port runtime.mpreinit(0x59cf40) does not exist or your board is not connected.

Arduino:

 1.8.4 (Mac OS X), Board: "Arduino Uno WiFi"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/neil/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/neil/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/neil/OneDrive/Arduino/libraries -fqbn=arduino:avr:unowifi -ide-version=10804 -build-path /var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171 -warnings=none -build-cache /var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_cache_515704 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Applications/Arduino.app/Contents/Java/examples/01.Basics/Blink/Blink.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/neil/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/neil/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/neil/OneDrive/Arduino/libraries -fqbn=arduino:avr:unowifi -ide-version=10804 -build-path /var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171 -warnings=none -build-cache /var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_cache_515704 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Applications/Arduino.app/Contents/Java/examples/01.Basics/Blink/Blink.ino
Using board 'unowifi' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Using core 'arduino' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Detecting libraries used...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171/sketch/Blink.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171/sketch/Blink.ino.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171/preproc/ctags_target_for_gcc_minus_e.cpp"
"/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171/sketch/Blink.ino.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171/sketch/Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core
Linking everything together...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p  -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171/Blink.ino.elf" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171/sketch/Blink.ino.cpp.o" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171/../arduino_cache_515704/core/core_arduino_avr_unowifi_51f02b7210b938436b779d1c032618e1.a" "-L/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171" -lm
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171/Blink.ino.elf" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171/Blink.ino.eep"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy" -O ihex -R .eeprom  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171/Blink.ino.elf" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_150171/Blink.ino.hex"
Sketch uses 928 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
An error occurred while uploading the sketch
failed MSpanList_Insert 0x624000 0x31294daea3cb 0x0 0x0
fatal error: MSpanList_Insert

runtime stack:

runtime.throw(0x40be70, 0x10)
	/home/martino/go_src/src/runtime/panic.go:530 +0x90 fp=0x7ffeefbff5a0 sp=0x7ffeefbff588
runtime.(*mSpanList).insert(0x5a1ec8, 0x624000)
	/home/martino/go_src/src/runtime/mheap.go:933 +0x293 fp=0x7ffeefbff5d0 sp=0x7ffeefbff5a0
runtime.(*mheap).freeSpanLocked(0x5a16c0, 0x624000, 0x100, 0x0)
	/home/martino/go_src/src/runtime/mheap.go:809 +0x4be fp=0x7ffeefbff638 sp=0x7ffeefbff5d0
runtime.(*mheap).grow(0x5a16c0, 0x8, 0x0)
	/home/martino/go_src/src/runtime/mheap.go:675 +0x2a0 fp=0x7ffeefbff690 sp=0x7ffeefbff638
runtime.(*mheap).allocSpanLocked(0x5a16c0, 0x1, 0x0)
	/home/martino/go_src/src/runtime/mheap.go:553 +0x4e3 fp=0x7ffeefbff6e8 sp=0x7ffeefbff690
runtime.(*mheap).alloc_m(0x5a16c0, 0x1, 0x15, 0x0)
	/home/martino/go_src/src/runtime/mheap.go:437 +0x119 fp=0x7ffeefbff718 sp=0x7ffeefbff6e8
runtime.(*mheap).alloc.func1()
	/home/martino/go_src/src/runtime/mheap.go:502 +0x41 fp=0x7ffeefbff748 sp=0x7ffeefbff718
runtime.systemstack(0x7ffeefbff768)
	/home/martino/go_src/src/runtime/asm_amd64.s:307 +0xab fp=0x7ffeefbff750 sp=0x7ffeefbff748
runtime.(*mheap).alloc(0x5a16c0, 0x1, 0x10000000015, 0x10c5f)
	/home/martino/go_src/src/runtime/mheap.go:503 +0x63 fp=0x7ffeefbff798 sp=0x7ffeefbff750
runtime.(*mcentral).grow(0x5a32c0, 0x0)
	/home/martino/go_src/src/runtime/mcentral.go:209 +0x93 fp=0x7ffeefbff800 sp=0x7ffeefbff798
runtime.(*mcentral).cacheSpan(0x5a32c0, 0x59c138)
	/home/martino/go_src/src/runtime/mcentral.go:89 +0x47d fp=0x7ffeefbff840 sp=0x7ffeefbff800
runtime.(*mcache).refill(0x620000, 0x15, 0x7ffeefbff8a8)
	/home/martino/go_src/src/runtime/mcache.go:119 +0xcc fp=0x7ffeefbff878 sp=0x7ffeefbff840
runtime.mallocgc.func2()
	/home/martino/go_src/src/runtime/malloc.go:642 +0x2b fp=0x7ffeefbff898 sp=0x7ffeefbff878
runtime.systemstack(0x7ffeefbff938)
	/home/martino/go_src/src/runtime/asm_amd64.s:307 +0xab fp=0x7ffeefbff8a0 sp=0x7ffeefbff898
runtime.mallocgc(0x180, 0x3c6c40, 0x0, 0x800000000)
	/home/martino/go_src/src/runtime/malloc.go:643 +0x869 fp=0x7ffeefbff978 sp=0x7ffeefbff8a0
runtime.newobject(0x3c6c40, 0x59c5f0)
	/home/martino/go_src/src/runtime/malloc.go:781 +0x42 fp=0x7ffeefbff9a0 sp=0x7ffeefbff978
runtime.malg(0x8000, 0x59c9a0)
	/home/martino/go_src/src/runtime/proc.go:2634 +0x27 fp=0x7ffeefbff9d8 sp=0x7ffeefbff9a0
runtime.mpreinit(0x59cf40)
	/home/martino/go_src/src/runtime/os1_darwin.go:140 +0x1f fp=0x7ffeefbff9f0 sp=0x7ffeefbff9d8
runtime.mcommoninit(0x59cf40)
	/home/martino/go_src/src/runtime/proc.go:494 +0x105 fp=0x7ffeefbffa38 sp=0x7ffeefbff9f0
runtime.schedinit()
	/home/martino/go_src/src/runtime/proc.go:434 +0x79 fp=0x7ffeefbffa80 sp=0x7ffeefbffa38
runtime.rt0_go(0x7ffeefbffab8, 0xf, 0x7ffeefbffab8, 0x0, 0x0, 0xf, 0x7ffeefbffc48, 0x7ffeefbffc92, 0x7ffeefbffc9b, 0x7ffeefbffcaa, ...)
	/home/martino/go_src/src/runtime/asm_amd64.s:138 +0x132 fp=0x7ffeefbffa88 sp=0x7ffeefbffa80`
@neilfx1
Copy link
Author

neilfx1 commented Aug 23, 2017

Also get the following occasionally - 0x59cf40 seems to be the common failure point.

	/home/martino/go_src/src/runtime/proc.go:2634 +0x27 fp=0x7ffeefbff9d8 sp=0x7ffeefbff9a0
runtime.mpreinit(0x59cf40)
the selected serial port runtime.mpreinit(0x59cf40)
 does not exist or your board is not connected
	/home/martino/go_src/src/runtime/os1_darwin.go:140 +0x1f fp=0x7ffeefbff9f0 sp=0x7ffeefbff9d8
runtime.mcommoninit(0x59cf40)
	/home/martino/go_src/src/runtime/proc.go:494 +0x105 fp=0x7ffeefbffa38 sp=0x7ffeefbff9f0
runtime.schedinit()
	/home/martino/go_src/src/runtime/proc.go:434 +0x79 fp=0x7ffeefbffa80 sp=0x7ffeefbffa38
runtime.rt0_go(0x7ffeefbffab8, 0xf, 0x7ffeefbffab8, 0x0, 0x0, 0xf, 0x7ffeefbffc48, 0x7ffeefbffc92, 0x7ffeefbffc9b, 0x7ffeefbffcaa, ...)
	/home/martino/go_src/src/runtime/asm_amd64.s:138 +0x132 fp=0x7ffeefbffa88 sp=0x7ffeefbffa80

@per1234 per1234 added the Component: Uploading Uploading programs to an Arduino board label Aug 23, 2017
@cmaglie
Copy link
Member

cmaglie commented Aug 28, 2017

could you enable verbose upload?

It seems related to golang/go#17182, maybe a rebuild of the tool with a recent version of golang may fix it.

@neilfx1
Copy link
Author

neilfx1 commented Aug 28, 2017

Hi,

As requested. I've tried running ArduinoOTA from a terminal session and it throws the same error (with no command line parameters).

Compilation:

/Applications/Arduino.app/Contents/Java/arduino-builder` -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/neil/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/neil/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/neil/OneDrive/Arduino/libraries -fqbn=arduino:avr:unowifi -ide-version=10804 -build-path /var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572 -warnings=none -build-cache /var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_cache_583261 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Applications/Arduino.app/Contents/Java/examples/01.Basics/Blink/Blink.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/neil/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/neil/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/neil/OneDrive/Arduino/libraries -fqbn=arduino:avr:unowifi -ide-version=10804 -build-path /var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572 -warnings=none -build-cache /var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_cache_583261 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Applications/Arduino.app/Contents/Java/examples/01.Basics/Blink/Blink.ino
Using board 'unowifi' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Using core 'arduino' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Detecting libraries used...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/sketch/Blink.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/sketch/Blink.ino.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/preproc/ctags_target_for_gcc_minus_e.cpp"
"/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/sketch/Blink.ino.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/sketch/Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/wiring_pulse.S" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/wiring_pulse.S.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WInterrupts.c" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/WInterrupts.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/hooks.c" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/hooks.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/wiring.c" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/wiring.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/wiring_analog.c" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/wiring_analog.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/wiring_digital.c" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/wiring_digital.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/wiring_pulse.c" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/wiring_pulse.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/wiring_shift.c" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/wiring_shift.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/CDC.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/CDC.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/HardwareSerial.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/HardwareSerial0.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/HardwareSerial1.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/HardwareSerial2.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/HardwareSerial3.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/IPAddress.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/IPAddress.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/PluggableUSB.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/Print.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Stream.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/Stream.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Tone.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/Tone.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/USBCore.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/USBCore.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WMath.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/WMath.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WString.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/WString.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/abi.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/abi.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/main.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/main.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR  -DESP_CH_UART -DESP_CH_UART_BR=19200 "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/new.cpp" -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/new.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/wiring_pulse.S.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/WInterrupts.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/hooks.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/wiring.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/wiring_analog.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/wiring_digital.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/wiring_pulse.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/wiring_shift.c.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/CDC.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/HardwareSerial.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/HardwareSerial0.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/HardwareSerial1.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/HardwareSerial2.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/HardwareSerial3.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/IPAddress.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/PluggableUSB.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/Print.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/Stream.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/Tone.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/USBCore.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/WMath.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/WString.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/abi.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/main.cpp.o"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/new.cpp.o"
Archiving built core (caching) in: /var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_cache_583261/core/core_arduino_avr_unowifi_51f02b7210b938436b779d1c032618e1.a
Linking everything together...
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p  -o "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/Blink.ino.elf" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/sketch/Blink.ino.cpp.o" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/core/core.a" "-L/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572" -lm
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/Blink.ino.elf" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/Blink.ino.eep"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy" -O ihex -R .eeprom  "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/Blink.ino.elf" "/var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/Blink.ino.hex"

Uploading:

Sketch uses 928 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/arduinoOTA -address 172.31.100.112 -port 80 -sketch /var/folders/l1/t0yygvzd0_75n4cm4lrgk9480000gn/T/arduino_build_914572/Blink.ino.hex -upload /pgm/upload -sync /pgm/sync -reset /log/reset -sync_exp 204:SYNC 
failed MSpanList_Insert 0x624000 0xc1c51fb89ba9 0x0 0x0
fatal error: MSpanList_Insert

Runtime Stack:

runtime stack:
runtime.throw(0x40be70, 0x10)
	/home/martino/go_src/src/runtime/panic.go:530 +0x90 fp=0x7ffeefbff5a0 sp=0x7ffeefbff588
runtime.(*mSpanList).insert(0x5a1ec8, 0x624000)
	/home/martino/go_src/src/runtime/mheap.go:933 +0x293 fp=0x7ffeefbff5d0 sp=0x7ffeefbff5a0
runtime.(*mheap).freeSpanLocked(0x5a16c0, 0x624000, 0x100, 0x0)
	/home/martino/go_src/src/runtime/mheap.go:809 +0x4be fp=0x7ffeefbff638 sp=0x7ffeefbff5d0
runtime.(*mheap).grow(0x5a16c0, 0x8, 0x0)
	/home/martino/go_src/src/runtime/mheap.go:675 +0x2a0 fp=0x7ffeefbff690 sp=0x7ffeefbff638
runtime.(*mheap).allocSpanLocked(0x5a16c0, 0x1, 0x0)
	/home/martino/go_src/src/runtime/mheap.go:553 +0x4e3 fp=0x7ffeefbff6e8 sp=0x7ffeefbff690
runtime.(*mheap).alloc_m(0x5a16c0, 0x1, 0x15, 0x0)
	/home/martino/go_src/src/runtime/mheap.go:437 +0x119 fp=0x7ffeefbff718 sp=0x7ffeefbff6e8
runtime.(*mheap).alloc.func1()
	/home/martino/go_src/src/runtime/mheap.go:502 +0x41 fp=0x7ffeefbff748 sp=0x7ffeefbff718
runtime.systemstack(0x7ffeefbff768)
	/home/martino/go_src/src/runtime/asm_amd64.s:307 +0xab fp=0x7ffeefbff750 sp=0x7ffeefbff748
runtime.(*mheap).alloc(0x5a16c0, 0x1, 0x10000000015, 0x10c5f)
	/home/martino/go_src/src/runtime/mheap.go:503 +0x63 fp=0x7ffeefbff798 sp=0x7ffeefbff750
runtime.(*mcentral).grow(0x5a32c0, 0x0)
	/home/martino/go_src/src/runtime/mcentral.go:209 +0x93 fp=0x7ffeefbff800 sp=0x7ffeefbff798
runtime.(*mcentral).cacheSpan(0x5a32c0, 0x59c138)
	/home/martino/go_src/src/runtime/mcentral.go:89 +0x47d fp=0x7ffeefbff840 sp=0x7ffeefbff800
runtime.(*mcache).refill(0x620000, 0x15, 0x7ffeefbff8a8)
	/home/martino/go_src/src/runtime/mcache.go:119 +0xcc fp=0x7ffeefbff878 sp=0x7ffeefbff840
runtime.mallocgc.func2()
	/home/martino/go_src/src/runtime/malloc.go:642 +0x2b fp=0x7ffeefbff898 sp=0x7ffeefbff878
runtime.systemstack(0x7ffeefbff938)
	/home/martino/go_src/src/runtime/asm_amd64.s:307 +0xab fp=0x7ffeefbff8a0 sp=0x7ffeefbff898
runtime.mallocgc(0x180, 0x3c6c40, 0x0, 0x800000000)
	/home/martino/go_src/src/runtime/malloc.go:643 +0x869 fp=0x7ffeefbff978 sp=0x7ffeefbff8a0
runtime.newobject(0x3c6c40, 0x59c5f0)
	/home/martino/go_src/src/runtime/malloc.go:781 +0x42 fp=0x7ffeefbff9a0 sp=0x7ffeefbff978
runtime.malg(0x8000, 0x59c9a0)
	/home/martino/go_src/src/runtime/proc.go:2634 +0x27 fp=0x7ffeefbff9d8 sp=0x7ffeefbff9a0
runtime.mpreinit(0x59cf40)
	/home/martino/go_src/src/runtime/os1_darwin.go:140 +0x1f fp=0x7ffeefbff9f0 sp=0x7ffeefbff9d8
runtime.mcommoninit(0x59cf40)
	/home/martino/go_src/src/runtime/proc.go:494 +0x105 fp=0x7ffeefbffa38 sp=0x7ffeefbff9f0
runtime.schedinit()
	/home/martino/go_src/src/runtime/proc.go:434 +0x79 fp=0x7ffeefbffa80 sp=0x7ffeefbffa38
runtime.rt0_go(0x7ffeefbffab8, 0xf, 0x7ffeefbffab8, 0x0, 0x0, 0xf, 0x7ffeefbffc48, 0x7ffeefbffc92, 0x7ffeefbffc9b, 0x7ffeefbffcaa, ...)
	/home/martino/go_src/src/runtime/asm_amd64.s:138 +0x132 fp=0x7ffeefbffa88 sp=0x7ffeefbffa80
the selected serial port 	/home/martino/go_src/src/runtime/asm_amd64.s:138 +0x132 fp=0x7ffeefbffa88 sp=0x7ffeefbffa80
 does not exist or your board is not connected

@facchinm
Copy link
Member

facchinm commented Sep 4, 2017

Recompiling https://github.com/arduino/arduinoOTA with go 1.9 should be enough, assigning to NEXT milestone.

@facchinm facchinm added this to the Next milestone Sep 4, 2017
@facchinm facchinm reopened this Sep 11, 2017
@neilfx1
Copy link
Author

neilfx1 commented Sep 15, 2017

I can confirm recompiling against go 1.9 worked, thanks for your help.

facchinm added a commit that referenced this issue Oct 16, 2017
facchinm added a commit to facchinm/Arduino that referenced this issue Oct 18, 2017
cmaglie pushed a commit that referenced this issue Oct 23, 2017
cmaglie pushed a commit that referenced this issue Oct 30, 2017
facchinm added a commit that referenced this issue Nov 10, 2017
facchinm added a commit that referenced this issue Nov 15, 2017
facchinm added a commit that referenced this issue Jan 11, 2018
facchinm added a commit that referenced this issue Feb 16, 2018
facchinm added a commit that referenced this issue Apr 12, 2018
facchinm added a commit that referenced this issue May 2, 2018
@per1234
Copy link
Collaborator

per1234 commented Oct 2, 2020

It appears the updated version of ArduinoOTA has been bundled with the IDE, so I'll close this as fixed.

@per1234 per1234 closed this as completed Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Uploading Uploading programs to an Arduino board Type: Bug
Projects
None yet
Development

No branches or pull requests

4 participants