0

Uploading fails on FEATHER HUZZAH ESP8266
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Uploading fails on FEATHER HUZZAH ESP8266

by dreamstarusa on Thu Jan 18, 2018 10:20 pm

Hi there,

I purchased 3 huzzah 8266 and I am getting the following error while uploading a blink LED sketch. I have read the tutorial and read the forums for answers. I have found some clues but I am too much of a beginner to process successfully what I read. I am using Max os 10.11.5 and arduino 1.8.5. Following some advice, I tried an older version of arduino (1.6.5) but I am still getting the following errors. I am using a mini mac. Would you be kind enough to advise. Thank you.

warning: espcomm_sync failed
An error occurred while uploading the sketch
error: espcomm_open failed
error: espcomm_upload_mem failed



PS. under PORT, I do not have any other options.
Attachments
Screen Shot 2018-01-18 at 6.10.45 PM.jpg
Screen Shot 2018-01-18 at 6.10.45 PM.jpg (46.19 KiB) Viewed 546 times

dreamstarusa
 
Posts: 18
Joined: Mon Jan 08, 2018 12:49 am

Re: Uploading fails on FEATHER HUZZAH ESP8266

by adafruit_support_mike on Fri Jan 19, 2018 4:00 am

In the screenshot above, you've selected the wrong Serial Port for the Feather.

If you've installed the CP2104 driver as described on this page of the tutorial:

https://learn.adafruit.com/adafruit-fea ... rduino-ide

You should see a port named /dev/cu.SLAB_USBtoUART That's the one that talks to the ESP8266.

adafruit_support_mike
 
Posts: 53063
Joined: Thu Feb 11, 2010 2:51 pm

Re: Uploading fails on FEATHER HUZZAH ESP8266

by pdh on Fri Jan 19, 2018 11:05 am

I got similar errors with Feather on Windows at first. It turned out that my USB cable was power-only -- evidently the cable is for recharging batteries only (which is what I had been using it for -- I've had the cable for a while) but the data lines aren't connected. The result was that the COM port didn't show up in Windows Device Manager, and I couldn't upload.

I located a proper USB cable and with that cable in place, it all worked. I don't know how to tell from the outside whether a USB cable has the data lines connected or not, but you might try using a different cable if you have one.
pdh
 
Posts: 161
Joined: Wed Dec 25, 2013 12:59 pm
Location: Northwest Pennsylvania

Re: Uploading fails on FEATHER HUZZAH ESP8266

by dreamstarusa on Fri Jan 19, 2018 9:40 pm

Dear Mike,
You are correct. I had forgotten to download the driver. However, after doing so successfully and restarting the computer a couple times, it did not change my options for PORT. I still only have one option and it is /dev/cu/bluetooth-incoming-port

Since I am using mac os 10.11.5, I dont believe I should get the legacy driver. The micro usb cable is from adafruit and works with my other boards.

This is the driver I installed.
Attachments
Screen Shot 2018-01-19 at 5.43.15 PM.jpg
Screen Shot 2018-01-19 at 5.43.15 PM.jpg (14.2 KiB) Viewed 487 times

dreamstarusa
 
Posts: 18
Joined: Mon Jan 08, 2018 12:49 am

Re: Uploading fails on FEATHER HUZZAH ESP8266

by adafruit_support_mike on Sun Jan 21, 2018 4:13 am

Try using the legacy driver and see if it helps. OS X updates contain many similar features, even across versions, so it's possible that the legacy problem happens on 10.11 as well.

adafruit_support_mike
 
Posts: 53063
Joined: Thu Feb 11, 2010 2:51 pm

Re: Uploading fails on FEATHER HUZZAH ESP8266

by dreamstarusa on Sun Jan 21, 2018 10:05 pm

It worked with the legacy driver. Thanks Mike.
What Mac operating system version do you recommend at adafruit for ease of use for beginners?

Now that I have my HUZZAH ESP86 working, I wanted to go back to my pro trinket - but I realized my board was gone in the menu. It was no longer available.
Can you confirm that when I use this link in the preferences under additional boards (for huzzah):

http://arduino.esp8266.com/stable/packa ... index.json

I will loose the boards that I had originally installed with this one:

https://adafruit.github.io/arduino-boar ... index.json

dreamstarusa
 
Posts: 18
Joined: Mon Jan 08, 2018 12:49 am

Re: Uploading fails on FEATHER HUZZAH ESP8266

by adafruit_support_mike on Mon Jan 22, 2018 5:28 am

dreamstarusa wrote:What Mac operating system version do you recommend at adafruit for ease of use for beginners?

"Whatever was current when the thing you want to use was written."

Writing code for multiple operating systems is a challenge, and keeping code back-compatible with older versions of an OS while also making it work on the latest version takes a lot fo work. Most third-party developers don't do that work. They write and test their code with whatever is the standard version while they're writing it, and with anything else you take your chances. Once code exists, keeping it current with the continuing development of an OS also takes work, and again, most developers don't do that.

The Arduino IDE is under continuous development, so you can generally assume that each version is compatible with the OSes that were in common use when they were released. If you're using an older OS, you might find yourself needing to use an older version of the IDE. That's a bit risky because all of the libraries and board support packages are updated to stay consistent with the most recent versions of the IDE, and sometimes your only option is to upgrade everything or give up the idea of using some package.

dreamstarusa wrote:Can you confirm that when I use this link in the preferences under additional boards (for huzzah):

http://arduino.esp8266.com/stable/packa ... index.json

I will loose the boards that I had originally installed with this one:

https://adafruit.github.io/arduino-boar ... index.json

If you replace the one with the other, yes. You don't have to do that though.

You can enter multiple URLs as long as you put commas between them. Then the IDE will list all the board options for all the URLs.

adafruit_support_mike
 
Posts: 53063
Joined: Thu Feb 11, 2010 2:51 pm

Re: Uploading fails on FEATHER HUZZAH ESP8266

by dreamstarusa on Tue Jan 23, 2018 1:36 am

Dear Mike - I did not know I could enter several boards in the preferences for additional boards by adding a coma and a space and adding the other links. That worked.

I come from the audio world where we were always one operating system behind just to be safe. it appears you are telling me it's better to be up to date in the arduino world.
Would you advise on updating to High Sierra Mac OS? Keep in mind I am a beginner and most of my boards are adafruit and an arduino uno.

Thank you

dreamstarusa
 
Posts: 18
Joined: Mon Jan 08, 2018 12:49 am

Re: Uploading fails on FEATHER HUZZAH ESP8266

by adafruit_support_mike on Tue Jan 23, 2018 2:10 am

The world of software development does tend to focus on using the latest version of everything.

It isn't a yes/no choice though. The software that exists today will probably also work on older systems, but there's no guarantee that it will. There's also no guarantee that code written five years ago will work on a system running the latest version of all the tools.

If you can make code work with your OS of choice, use it. Just be aware that you can run into problems where the only working solution is "you'll need to move to a system with more recent tools". That's more likely to happen if you're using hardware and code on the leading edge of development, and less likely if you stick to hardware and code that's been around for a long time.

adafruit_support_mike
 
Posts: 53063
Joined: Thu Feb 11, 2010 2:51 pm

Re: Uploading fails on FEATHER HUZZAH ESP8266

by mcarmijo on Fri Jan 26, 2018 7:40 pm

Just now trying to operate my Huzzah ESP8266 for the 1st time running the Blink example:
Code: Select all | TOGGLE FULL SIZE
/*
  Blink

  Turns an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino
  model, check the Technical Specs of your board at:
  https://www.arduino.cc/en/Main/Products

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
  modified 8 Sep 2016
  by Colby Newman

  This example code is in the public domain.
  http://www.arduino.cc/en/Tutorial/Blink
*/

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(2, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(2, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(2, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}


I get the error msg shown below; at the 2nd to last line of the error msg I find “The process cannot access the file because it is being used by another process. “ Any idea what the problem is?

1st Huzzah Error msg : Arduino: 1.8.5 (Windows 10), Board: "Adafruit HUZZAH ESP8266, 80 MHz, 4M (1M SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 115200"
Code: Select all | TOGGLE FULL SIZE
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\mcarm\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\mcarm\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\mcarm\Documents\Arduino\libraries -fqbn=esp8266:esp8266:huzzah:CpuFrequency=80,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,UploadSpeed=115200 -ide-version=10805 -build-path C:\Users\mcarm\AppData\Local\Temp\arduino_build_376201 -warnings=none -build-cache C:\Users\mcarm\AppData\Local\Temp\arduino_cache_243290 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esptool.path=C:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.12 -prefs=runtime.tools.mkspiffs.path=C:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -verbose C:\Users\mcarm\AppData\Local\Temp\arduino_modified_sketch_844203\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\mcarm\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\mcarm\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\mcarm\Documents\Arduino\libraries -fqbn=esp8266:esp8266:huzzah:CpuFrequency=80,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,UploadSpeed=115200 -ide-version=10805 -build-path C:\Users\mcarm\AppData\Local\Temp\arduino_build_376201 -warnings=none -build-cache C:\Users\mcarm\AppData\Local\Temp\arduino_cache_243290 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esptool.path=C:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.12 -prefs=runtime.tools.mkspiffs.path=C:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -verbose C:\Users\mcarm\AppData\Local\Temp\arduino_modified_sketch_844203\Blink.ino
Using board 'huzzah' from platform in folder: C:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0
Using core 'esp8266' from platform in folder: C:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0
Detecting libraries used...
"C:\Users\mcarm\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\mcarm\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0/tools/sdk/include" "-IC:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0/tools/sdk/lwip2/include" "-IC:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\mcarm\AppData\Local\Temp\arduino_build_376201/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536   -DARDUINO=10805 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_ESP12"  -DESP8266 "-IC:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266" "-IC:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\variants\adafruit" "C:\Users\mcarm\AppData\Local\Temp\arduino_build_376201\sketch\Blink.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Users\mcarm\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\mcarm\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0/tools/sdk/include" "-IC:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0/tools/sdk/lwip2/include" "-IC:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\mcarm\AppData\Local\Temp\arduino_build_376201/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536   -DARDUINO=10805 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_ESP12"  -DESP8266 "-IC:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266" "-IC:\Users\mcarm\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\variants\adafruit" "C:\Users\mcarm\AppData\Local\Temp\arduino_build_376201\sketch\Blink.ino.cpp" -o "C:\Users\mcarm\AppData\Local\Temp\arduino_build_376201\preproc\ctags_target_for_gcc_minus_e.cpp"
open C:\Users\mcarm\AppData\Local\Temp\arduino_build_376201\preproc\ctags_target_for_gcc_minus_e.cpp: The process cannot access the file because it is being used by another process.
Error compiling for board Adafruit HUZZAH ESP8266.


SOLUTION FOUND: Disable anti-virus application for at least the duration of compile/download.
Last edited by mcarmijo on Sun Jan 28, 2018 11:23 am, edited 3 times in total.

mcarmijo
 
Posts: 1
Joined: Fri Jan 26, 2018 7:18 pm

Re: Uploading fails on FEATHER HUZZAH ESP8266

by adafruit_support_mike on Sun Jan 28, 2018 4:04 am

Hmm.. the error is saying that two programs are trying to open the same file, but only one of them can.

That's an issue with the Arduino IDE, and doesn't have any direct connection to the code you're trying to compile/upload.

Try rebooting your computer to see if that does any good, and if not, check with the folks over in the Arduino forums:

http://forum.arduino.cc/

They write and maintain the IDE, so they're more likely to know what's causing that specific problem.

adafruit_support_mike
 
Posts: 53063
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.


cron