Home › Forums › Mayfly Data Logger › New Mayfly user – upload stopped working
- This topic has 6 replies, 2 voices, and was last updated 2018-07-23 at 1:17 PM by Dave Fisher.
-
AuthorPosts
-
-
2018-07-20 at 1:38 PM #12315
I recently attended a Mayfly class, and bought a board thru Amazon. I followed setup instructions carefully, and was able to run the blink demo, write to the SD card, etc. The next day when I started the IDE, it indicated there were libraries to be updated, so I updated them prior to running any sketches. The upload failed, and I presumed there was a library conflict. I uninstalled the IDE, removed all Arduino-related files, restarted the computer, and reinstalled the IDE. I still can’t get blink_demo_1 to upload (error posted below), and I’m hoping that only SOME of the libraries need updating. I’ve spend several days reading the EnviroDIY forums and googling the error, and I’ve run out of things to try. Any help to un-brick my Mayfly will be appreciated.
Updatable libraries are:
– Bridge (v1.6.3 installed)
– Firmata (v2.5.6 installed)
– Keyboard (v1.0.1 installed)
– SD (v 1.1.1 installed)
– Adafruit Circuit Playground (v1.6.8 installed)Complete error output:
Arduino: 1.8.5 (Windows 10), Board: “EnviroDIY Mayfly 1284p”C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Dave Fisher\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Dave Fisher\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Dave Fisher\Dropbox\a_tia\Arduino\Sketches\libraries -fqbn=EnviroDIY:avr:envirodiy_mayfly -ide-version=10805 -build-path C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564 -warnings=default -build-cache C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_cache_168652 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avrdude.path=C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -verbose C:\Users\Dave Fisher\Dropbox\a_tia\Arduino\Sketches\EnviroDIY_Mayfly_Logger-master\examples\blink_demo_1\blink_demo_1.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Dave Fisher\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Dave Fisher\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Dave Fisher\Dropbox\a_tia\Arduino\Sketches\libraries -fqbn=EnviroDIY:avr:envirodiy_mayfly -ide-version=10805 -build-path C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564 -warnings=default -build-cache C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_cache_168652 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avrdude.path=C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -verbose C:\Users\Dave Fisher\Dropbox\a_tia\Arduino\Sketches\EnviroDIY_Mayfly_Logger-master\examples\blink_demo_1\blink_demo_1.ino
Using board ‘envirodiy_mayfly’ from platform in folder: C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\EnviroDIY\hardware\avr\1.0.0
Using core ‘arduino’ from platform in folder: C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21
Detecting libraries used…
“C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/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=atmega1284p -DF_CPU=8000000L -DARDUINO=10805 -DARDUINO_AVR_ENVIRODIY_MAYFLY -DARDUINO_ARCH_AVR “-IC:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino” “-IC:\Users\Dave Fisher\AppData\Local\Arduino15\packages\EnviroDIY\hardware\avr\1.0.0\variants\mayfly” “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564\sketch\blink_demo_1.ino.cpp” -o “nul”
“C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/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=atmega1284p -DF_CPU=8000000L -DARDUINO=10805 -DARDUINO_AVR_ENVIRODIY_MAYFLY -DARDUINO_ARCH_AVR “-IC:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino” “-IC:\Users\Dave Fisher\AppData\Local\Arduino15\packages\EnviroDIY\hardware\avr\1.0.0\variants\mayfly” “-IC:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src” “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564\sketch\blink_demo_1.ino.cpp” -o “nul”
Using cached library dependencies for file: C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\Wire.cpp
Using cached library dependencies for file: C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c
Generating function prototypes…
“C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/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=atmega1284p -DF_CPU=8000000L -DARDUINO=10805 -DARDUINO_AVR_ENVIRODIY_MAYFLY -DARDUINO_ARCH_AVR “-IC:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino” “-IC:\Users\Dave Fisher\AppData\Local\Arduino15\packages\EnviroDIY\hardware\avr\1.0.0\variants\mayfly” “-IC:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src” “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564\sketch\blink_demo_1.ino.cpp” -o “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564\preproc\ctags_target_for_gcc_minus_e.cpp”
“C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags” -u –language-force=c++ -f – –c++-kinds=svpf –fields=KSTtzns –line-directives “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564\preproc\ctags_target_for_gcc_minus_e.cpp”
Compiling sketch…
“C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++” -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega1284p -DF_CPU=8000000L -DARDUINO=10805 -DARDUINO_AVR_ENVIRODIY_MAYFLY -DARDUINO_ARCH_AVR “-IC:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino” “-IC:\Users\Dave Fisher\AppData\Local\Arduino15\packages\EnviroDIY\hardware\avr\1.0.0\variants\mayfly” “-IC:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src” “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564\sketch\blink_demo_1.ino.cpp” -o “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564\sketch\blink_demo_1.ino.cpp.o”
Compiling libraries…
Compiling library “Wire”
Using previously compiled file: C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564\libraries\Wire\Wire.cpp.o
Using previously compiled file: C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564\libraries\Wire\utility\twi.c.o
Compiling core…
Using precompiled core
Linking everything together…
“C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-gcc” -Os -g -flto -fuse-linker-plugin -Wl,–gc-sections -mmcu=atmega1284p -o “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564/blink_demo_1.ino.elf” “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564\sketch\blink_demo_1.ino.cpp.o” “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564\libraries\Wire\Wire.cpp.o” “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564\libraries\Wire\utility\twi.c.o” “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564/..\arduino_cache_168652\core\core_EnviroDIY_avr_envirodiy_mayfly_6b089e73f281e3fae5b2023805de6736.a” “-LC:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564” -lm
“C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-objcopy” -O ihex -j .eeprom –set-section-flags=.eeprom=alloc,load –no-change-warnings –change-section-lma .eeprom=0 “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564/blink_demo_1.ino.elf” “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564/blink_demo_1.ino.eep”
“C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-objcopy” -O ihex -R .eeprom “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564/blink_demo_1.ino.elf” “C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564/blink_demo_1.ino.hex”
Using library Wire at version 1.0 in folder: C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\libraries\Wire
Sketch uses 3118 bytes (2%) of program storage space. Maximum is 130048 bytes.
Global variables use 349 bytes of dynamic memory.
C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/bin/avrdude -CC:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf -v -patmega1284p -carduino -PCOM3 -b57600 -D -Uflash:w:C:\Users\DAVEFI~1\AppData\Local\Temp\arduino_build_27564/blink_demo_1.ino.hex:iavrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg WunschSystem wide configuration file is “C:\Users\Dave Fisher\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf”
Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x7eavrdude done. Thank you.
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
-
2018-07-20 at 2:10 PM #12316
Hi Dave,
Sorry you’re having this trouble. I have a couple of possibly not useful pieces of information to see if I can help you. It sounds like you have a connection problem.
First, are you using the same download cable as you used the previous day? Some cables are charge only (not data) and I tend to rid my house of those!
Second, (kick me if you want, but…) is your Mayfly switched on? The Mayfly has a manual toggle on/off switch and this could cause your error.
Third, there’s a switch on the top edge of the board that exchanges between an external power source vs “lipo”, keep that on the lipo option. I have heard of some issue with frying boards that are set to external power when connected to USB (or the wires were backward for that colleague, but you have to be on lipo or it will bypass the programmer).
Fourth, have you selected the Mayfly under the “Tools” menu? If it isn’t in the tools menu, you may need to re-install the drivers.
Fifth, every time you connect any Arduino board to a new USB port on a Windows machine, it treats it like a new piece of hardware and assigns a new com port number. It looks like you were connected to COM3, but if you are in a different USB hole on your computer, it may now be a different port number. Since you re-installed everything, I’m not sure what the expected behavior is (I’m a Mac user…but I’ve seen this issue with my students).
Let me know if any of those ideas help.
Beth
-
2018-07-20 at 2:16 PM #12317
Problem fixed! Problem cause: days ago, I tried to insert the Real-Time-Clock battery upside down. It made contact, but wouldn’t seat fully (of course). I removed the battery, but DIDN’T insert it at all. The Mayfly never worked again (I tried for days) until I gave up, posted my plea for help, and happened to install the RTC battery (the correct way). The Mayfly LEDs started to cheerfully blink. Dunno why this caused a problem, and I hope this helps someone else.
-
2018-07-20 at 4:24 PM #12318
@davejadco-com, glad it’s working. I can’t imagine why the Mayfly wouldn’t receive an upload without the RTC battery. Or with it upside down, for that matter. I had a student insert several the wrong way and we fried the Mayfly RTC, so double check that.
You can test this by manually set the RTC, disconnect from a power source (USB or lipo battery connected to one of the JST pins), and then reconnect and see what time shows up when you open the serial monitor. I use the PCsync.ino sketch when I have to set the RTC manually.
-
2018-07-22 at 8:04 AM #12319
You’re right, apparently my RTC is fried since it will not hold the time/date. This is very frustrating, as I followed the RTC battery installation instructions on this forum at RTC battery installation instructions.
Can I get my RTC fixed, or do I need to throw away a brand new Mayfly? -Dave
-
2018-07-23 at 11:01 AM #12320
Hi Dave, the orientation in your photo is correct (and that’s the correct way demonstrated in the thread you linked), so I’m a little bit confused about how yours could be fried. It’s possible that the battery isn’t contacting properly. My experience has been that they are wicked hard to push in (because the early versions weren’t tight enough), so I haven’t had any trouble with the coin battery contacting properly.
But in answer to your question, I haven’t repaired the ones in my classroom, but the RTC chip is probably the most feasible chip to repair on the Mayfly. It’s cost is about $7. One of my engineer friends recommended hot air soldering for the removal stage.
-
2018-07-23 at 1:17 PM #12326
Beth – success! Problem fixed. Board not fried. The “wicked hard to push in” really helped – I, ah, “insisted” that the battery get seated oriented as in the picture, and now everything works. Thank you for helping me through this. -Dave
-
-
AuthorPosts
- You must be logged in to reply to this topic.