Unable to upload sketch to Blynk Board

I have installed the Arduino IDE 1.8.12 on my Windows 10 system.

I have added the Sparkfun Blynk Board to the IDE as per the tutorial for the Blynk Board.

The Arduino IDE assigns the connected Blynk Board a com port.

When I try to upload code from the IDE to the Blynk Board, I get this error message:

Arduino: 1.8.12 (Windows 10), Board: “SparkFun Blynk Board, 80 MHz, 115200, 4M (1M SPIFFS)”

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Dave\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\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Dave\Documents\Arduino\libraries -fqbn=esp8266:esp8266:sparkfunBlynk:CpuFrequency=80,UploadSpeed=115200,FlashSize=4M1M -vid-pid=0403_6015 -ide-version=10812 -build-path C:\Users\Dave\AppData\Local\Temp\arduino_build_861090 -warnings=none -build-cache C:\Users\Dave\AppData\Local\Temp\arduino_cache_913192 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.xtensa-lx106-elf-gcc-1.20.0-26-gb404fb9-2.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.1.2 -prefs=runtime.tools.mkspiffs-0.1.2.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.1.2 -prefs=runtime.tools.esptool.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.8 -prefs=runtime.tools.esptool-0.4.8.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.8 -verbose C:\Users\Dave\Documents\Arduino\libraries\Blynk\examples\Boards_WiFi\Sparkfun_Blynk_Board\Sparkfun_Blynk_Board.ino

Error resolving FQBN: board

Error compiling for board SparkFun Blynk Board.

Is there some problem with the IDE finding the hardware specifications for the board?

I appreciate your help since in a couple of weeks I will have a bunch of students attempting to do the same thing.

Dave F

Hi Dave.

We’ve not seen this error before. The only thing I can think of is that something went wrong during the board installation process in the IDE. You might try removing and re adding the Blynk board and see if that helps. The IDE will sometimes skip a file during installation and that causes issues like these.

Thanks Chris,

I’ll give that a try and let you know the results.

Dave

Hi Chris,

I removed the board (using the remove button) and reinstalled with the same resulting error. I did notice, however, that the board reinstall DID NOT go back out to the internet and re-download the board definition. Do you know where on the computer the IDE stores this file? I guess I will have to find it and manually delete it in order to accomplish a fresh install.

Thanks for you help; I appreciate it!

Dave

There’s a hidden directory somewhere on your hard drive called ‘Arduino15’, usually deleting that and your sketchbook folder will resolve this. It’s usually found here:

C:\Users(username)\AppData\Local\Arduino15

Hi Chris, I appreciate your insights and suggestions.

As per your instructions I deleted the Arduino15 folder in local app data and deleted the Arduino folder in my documents. that did indeed cause a new download from the URL. And that fixed the particular problem I was having. However, I am still getting compile and upload issues.

When I chose the EEPROM sketch from the Blynk Examples, I got the following error message.

It looks like it is compiling ok and is finding the necessary library, but is crashing during the linking phase. However, I am just a beginner programmer, so I could be way off base…

Anyway, here is the current error message, and I am grateful for your help:

Arduino: 1.8.12 (Windows 10), Board: “SparkFun Blynk Board, 80 MHz, 115200, 4M (1M SPIFFS)”

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Dave\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\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Dave\Documents\Arduino\libraries -fqbn=esp8266:esp8266:sparkfunBlynk:CpuFrequency=80,UploadSpeed=115200,FlashSize=4M1M -vid-pid=0403_6015 -ide-version=10812 -build-path C:\Users\Dave\AppData\Local\Temp\arduino_build_274894 -warnings=none -build-cache C:\Users\Dave\AppData\Local\Temp\arduino_cache_360033 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.1.2 -prefs=runtime.tools.mkspiffs-0.1.2.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.1.2 -prefs=runtime.tools.esptool.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.8 -prefs=runtime.tools.esptool-0.4.8.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.8 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.xtensa-lx106-elf-gcc-1.20.0-26-gb404fb9-2.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -verbose C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\libraries\EEPROM\examples\eeprom_clear\eeprom_clear.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Dave\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\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Dave\Documents\Arduino\libraries -fqbn=esp8266:esp8266:sparkfunBlynk:CpuFrequency=80,UploadSpeed=115200,FlashSize=4M1M -vid-pid=0403_6015 -ide-version=10812 -build-path C:\Users\Dave\AppData\Local\Temp\arduino_build_274894 -warnings=none -build-cache C:\Users\Dave\AppData\Local\Temp\arduino_cache_360033 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.1.2 -prefs=runtime.tools.mkspiffs-0.1.2.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.1.2 -prefs=runtime.tools.esptool.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.8 -prefs=runtime.tools.esptool-0.4.8.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.8 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.xtensa-lx106-elf-gcc-1.20.0-26-gb404fb9-2.path=C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -verbose C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\libraries\EEPROM\examples\eeprom_clear\eeprom_clear.ino

Using board ‘sparkfunBlynk’ from platform in folder: C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2

Using core ‘esp8266’ from platform in folder: C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2

Warning: platform.txt from core ‘ESP8266 Modules’ contains deprecated recipe.ar.pattern=“{compiler.path}{compiler.ar.cmd}” {compiler.ar.flags} {compiler.ar.extra_flags} “{build.path}/{archive_file}” “{object_file}”, automatically converted to recipe.ar.pattern=“{compiler.path}{compiler.ar.cmd}” {compiler.ar.flags} {compiler.ar.extra_flags} “{archive_file_path}” “{object_file}”. Consider upgrading this core.

Detecting libraries used…

“C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2/tools/sdk//include” -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -w -x c++ -E -CC -DF_CPU=80000000L -DARDUINO=10812 -DARDUINO_ESP8266_THING -DARDUINO_ARCH_ESP8266 -DESP8266 “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\cores\esp8266” “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\variants\thing” “C:\Users\Dave\AppData\Local\Temp\arduino_build_274894\sketch\eeprom_clear.ino.cpp” -o nul

Alternatives for EEPROM.h: [EEPROM@1.0]

ResolveLibrary(EEPROM.h)

→ candidates: [EEPROM@1.0]

“C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2/tools/sdk//include” -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -w -x c++ -E -CC -DF_CPU=80000000L -DARDUINO=10812 -DARDUINO_ESP8266_THING -DARDUINO_ARCH_ESP8266 -DESP8266 “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\cores\esp8266” “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\variants\thing” “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\libraries\EEPROM” “C:\Users\Dave\AppData\Local\Temp\arduino_build_274894\sketch\eeprom_clear.ino.cpp” -o nul

“C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2/tools/sdk//include” -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -w -x c++ -E -CC -DF_CPU=80000000L -DARDUINO=10812 -DARDUINO_ESP8266_THING -DARDUINO_ARCH_ESP8266 -DESP8266 “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\cores\esp8266” “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\variants\thing” “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\libraries\EEPROM” “C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\libraries\EEPROM\EEPROM.cpp” -o nul

Generating function prototypes…

“C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2/tools/sdk//include” -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -w -x c++ -E -CC -DF_CPU=80000000L -DARDUINO=10812 -DARDUINO_ESP8266_THING -DARDUINO_ARCH_ESP8266 -DESP8266 “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\cores\esp8266” “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\variants\thing” “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\libraries\EEPROM” “C:\Users\Dave\AppData\Local\Temp\arduino_build_274894\sketch\eeprom_clear.ino.cpp” -o “C:\Users\Dave\AppData\Local\Temp\arduino_build_274894\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\Dave\AppData\Local\Temp\arduino_build_274894\preproc\ctags_target_for_gcc_minus_e.cpp”

Compiling sketch…

“C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2/tools/sdk//include” -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10812 -DARDUINO_ESP8266_THING -DARDUINO_ARCH_ESP8266 -DESP8266 “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\cores\esp8266” “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\variants\thing” “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\libraries\EEPROM” “C:\Users\Dave\AppData\Local\Temp\arduino_build_274894\sketch\eeprom_clear.ino.cpp” -o “C:\Users\Dave\AppData\Local\Temp\arduino_build_274894\sketch\eeprom_clear.ino.cpp.o”

Compiling libraries…

Compiling library “EEPROM”

“C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2/tools/sdk//include” -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10812 -DARDUINO_ESP8266_THING -DARDUINO_ARCH_ESP8266 -DESP8266 “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\cores\esp8266” “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\variants\thing” “-IC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\libraries\EEPROM” “C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\libraries\EEPROM\EEPROM.cpp” -o “C:\Users\Dave\AppData\Local\Temp\arduino_build_274894\libraries\EEPROM\EEPROM.cpp.o”

Compiling core…

Using precompiled core: C:\Users\Dave\AppData\Local\Temp\arduino_cache_360033\core\core_6955304b3c6a5cf6b30b4c92c8564612.a

Linking everything together…

“C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-gcc” -nostdlib -Wl,–no-check-sections -u call_user_start -Wl,-static “-LC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2/tools/sdk//lib” “-LC:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2/tools/sdk//ld” -Teagle.flash.4m1m.ld -o “C:\Users\Dave\AppData\Local\Temp\arduino_build_274894/eeprom_clear.ino.elf” -Wl,–start-group “C:\Users\Dave\AppData\Local\Temp\arduino_build_274894\sketch\eeprom_clear.ino.cpp.o” “C:\Users\Dave\AppData\Local\Temp\arduino_build_274894\libraries\EEPROM\EEPROM.cpp.o” “C:\Users\Dave\AppData\Local\Temp\arduino_build_274894/…\arduino_cache_360033\core\core_6955304b3c6a5cf6b30b4c92c8564612.a” -lm -lgcc -lhal -lphy -lnet80211 -llwip -lwpa -lmain -lpp -lsmartconfig -Wl,–end-group “-LC:\Users\Dave\AppData\Local\Temp\arduino_build_274894”

c:/users/dave/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/…/lib/gcc/xtensa-lx106-elf/4.8.2/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: cannot open linker script file eagle.flash.4m1m.ld: No such file or directory

collect2.exe: error: ld returned 1 exit status

Using library EEPROM at version 1.0 in folder: C:\Users\Dave\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.2\libraries\EEPROM

exit status 1

Error compiling for board SparkFun Blynk Board.

Are you talking about the examples that show up in the IDE as “Examples for SparkFun Blynk Board?”

I’m not exactly sure why those show up for the Blynk board, I think they show up for any ESP8266 based board. Unfortunately we don’t provide those examples and don’t offer any support for them.

I wish I could help more, but I know nothing about that code or where it comes from.

Thanks Chris.

Yes. That is where they are from.

I’ll do some more investigating. I understand that it is not possible to support someone else’s code.

Question: If I download come of the Blynk Board firmware code from the Sparkfun Github repository and still get errors, would this be within your area of support?

Just an observation: I have done some customer support myself. It is an art form in its own right. You do it well.

Dave

Hi Chris. Good News!

I followed a different procedure which seems to be successful (at least for these first baby steps).

I went over to the Sparkfun Blynk Board GitHub site and grabbed the suggested .json file to enter into the Arduino IDE additional board manager URL field. This is different than the one I had entered previously into the IDE. No idea where I got that other one, but it looks as if the wrong .json file was the problem.

The file I used this time is: http://arduino.esp8266.com/stable/packa … index.json

I removed the other .json file and replaced it with this one.

I then followed the normal procedure of going over to the IDE board manager and installing the esp8266 package .

The files downloaded successfully.

I then selected the Sparkfun Blynk Board as my chosen board.

I uploaded a very simple “blink the LED on pin 5” sketch just to see if it would successfully upload, and it did!

Amazing just how happy a simple blinking blue LED can make one…

Time to move on to more complex programming. We’ll see what happens.

Thanks again, Chris. Talking to you was what pointed me to the Sparkfun GitHub site, which began unraveling the problem.

Dave F