0

Huzzah ESP8266 Upload Problems
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Huzzah ESP8266 Upload Problems

by wetblanket on Sun Apr 15, 2018 10:49 am

Yeah, that's the error message I was getting.
It turned out to be something with the wiring on my breadboard. I removed all the jumpers to the feather, and it uploaded just fine. I'm using a temp/humidity sensor, and I think I had the input wire coming from the wrong pin, because when I put all the jumpers back, it's still uploading new code ok.

wetblanket
 
Posts: 14
Joined: Sun Mar 26, 2017 7:19 pm

Re: Huzzah ESP8266 Upload Problems

by kevinjcho on Thu Apr 26, 2018 8:53 am

Hello,

I'm having the same problem.

I have been able to set up upload my sketch on one of my boards, and it works fine now.
However, I bought another board (identical) and it does not load.
If I connect the FTDI cable in my old board, it uploads fine. (So essentially Arduino IDE settings are held constant).

Literally everything from setup perspective is identical, but one uploads but the other board doesn't.

One difference is - if I connect GPIO 0 to GND, the red LED does not light up high, and still dimly lit. If I use a wire to manually touch GND to GPIO 0 contact from the chip, it lights up. Other than that, everything is identical.

Your support would be greatly appreciated.

kevinjcho
 
Posts: 1
Joined: Thu Apr 26, 2018 8:10 am

Re: Huzzah ESP8266 Upload Problems

by adafruit_support_rick on Mon Apr 30, 2018 11:36 am

Please post some clear, detailed pictures showing your soldering and wiring.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Huzzah ESP8266 Upload Problems

by saviojdsouza on Sun Jun 10, 2018 5:37 pm

Hi,

I have the below error when trying to upload the 'blink' code to the feather huzzah ( prod id 3619)( 1st code ).

Archiving built core (caching) in: C:\Users\hp\AppData\Local\Temp\arduino_cache_342291\core\core_esp8266_esp8266_huzzah_CpuFrequency_80,FlashSize_4M3M,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None____,FlashErase_none,UploadSpeed_115200_0f73536ca8dc4f78871a3fea7052fc87.a
Sketch uses 246311 bytes (23%) of program storage space. Maximum is 1044464 bytes.
Global variables use 32260 bytes (39%) of dynamic memory, leaving 49660 bytes for local variables. Maximum is 81920 bytes.
Uploading 250464 bytes from C:\Users\hp\AppData\Local\Temp\arduino_build_73800/esp_led_blink.ino.bin to flash at 0x00000000
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

Im using Windows7, IDE 1.8.5, USB drivers (CP201X)were downloaded by Windows when i first plugged in the feather huzzah into my PC. I did try 3 different micro USB cables ( i can access from phone pics using these micro usb cables so i hope the cable is not a problem)

when i connect the usb, red led blinks ( 5 flashes -pause -5 flashes -pause) before ,during and after failed download and the yellow led is continous dim ( no battery connected). blue led never has come on. I tried 'generic esp' and rst -NodeMCU but no luck yet. Also tried the 220 ohm between A0 and gnd and RST and EN I have nothing connected to the Feather Huzzah as I am only trying the blink code.

i have used the arduino uno before though its my first time with the ES8266 feather huzzah.

Looking forward to have your advise on a way forward.

thanks.
R/Savio.

saviojdsouza
 
Posts: 5
Joined: Sun Jun 10, 2018 5:19 pm

Re: Huzzah ESP8266 Upload Problems

by adafruit_support_rick on Mon Jun 11, 2018 9:32 am

What happens if you connect USB, open Serial Monitor, and then press reset? Does anything get printed out? Can you paste it here?

If it looks like gibberish, try setting the Serial Monitor baud rate to 74880, and try again.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Huzzah ESP8266 Upload Problems

by saviojdsouza on Mon Jun 11, 2018 10:29 am

Hi Nick,

Thanks for your input. Here is the output from the Serial monitor. I got a gibberish output on 74880 but got below once i changed to baud to 115200.
----------------------------
WiFi scan start
WiFi Scan done
3 networks found
1: UPC3625526 (-66)*
2: VM59C47D8 (-74)*
3: Horizon Wi-Free (-75)*

WiFi scan start
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0008,len:8
load:0x3fff0010,len:2016
load:0x400'78000,len:7780
ho 0 tail 12 room 4
load:0x40080000,len:252
entry 0x40080034
Setup done
'WiFi scan start

------------------------------------------------------------------------

Please advice. Thanks in advance.

Regards,
Savio.

saviojdsouza
 
Posts: 5
Joined: Sun Jun 10, 2018 5:19 pm

Re: Huzzah ESP8266 Upload Problems

by adafruit_support_rick on Mon Jun 11, 2018 10:46 am

Well, it looks like it's already running the standard WiFiScan example sketch, but it's crashing and restarting in the middle of it. I don't know why that would be - we don't load that sketch before shipping, and we don't re-ship returned boards.

Could be a hardware problem that's causing it to constantly reset. Please email support@adafruit.com with a link to this post for a replacement

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Huzzah ESP8266 Upload Problems

by CraveClone on Mon Jun 18, 2018 4:13 pm

Hey Rick and All,

I'm stuck and looking for some help.

I received my HUZZAH32 – ESP32 Feather Board late last week and have been unable to have a successful upload. I'm seeing very similar results to the previous poster here. I can successfully connect via usb and read the serial data. And like the previous post, my board is running some kind of wifi detection sketch by default ( I didn't put this on there, it sounds like that may be odd?). I've tried multiple cables as well as attempts on both Windows 10 and OSX High Seria 10.3.5 (with and without the legacy drivers). so if anyone can give me some advice or next steps it would be greatly appreciated.

Here are my settings:
Screenshot 2018-06-18 14.46.05.png
Screenshot 2018-06-18 14.46.05.png (38.33 KiB) Viewed 1120 times


My serial output looks like this, after hitting the reset button on the board.
Code: Select all | TOGGLE FULL SIZE
ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0008,len:8
load:0x3fff0010,len:2016
load:0x40078000,len:7780
ho 0 tail 12 room 4
load:0x40080000,len:252
entry 0x40080034
Setup done
WiFi scan start
WiFi Scan done
2 networks found
   1: LookingGlass (-76)*
   2: PS4-09F8340A72B7 (-94)*

WiFi scan start
WiFi Scan done
3 networks found
   1: LookingGlass (-77)*
   2: PS4-09F8340A72B7 (-91)*
   3: PS4-388899513F29 (-92)*

WiFi scan start
WiFi Scan done
3 networks found
   1: LookingGlass (-76)*
   2: PS4-388899513F29 (-90)*
   3: PS4-09F8340A72B7 (-94)*

WiFi scan start
WiFi Scan done
3 networks found
   1: LookingGlass (-77)*
   2: PS4-388899513F29 (-92)*
   3: PS4-09F8340A72B7 (-92)*

WiFi scan start
WiFi Scan done
3 networks found
   1: LookingGlass (-77)*
   2: PS4-09F8340A72B7 (-90)*
   3: PS4-388899513F29 (-91)*

WiFi scan start
WiFi Scan done
3 networks found
   1: LookingGlass (-77)*
   2: PS4-388899513F29 (-90)*
   3: PS4-09F8340A72B7 (-92)*



And here is the error logging on the upload attempt:

Code: Select all | TOGGLE FULL SIZE
Archiving built core (caching) in: C:\Users\jassc\AppData\Local\Temp\arduino_cache_96981\core\core_esp8266_esp8266_huzzah_CpuFrequency_80,FlashSize_4M3M,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None____,FlashErase_none,UploadSpeed_115200_94d847661ccd23b22f19ca131e79e4d7.a
Sketch uses 246123 bytes (23%) of program storage space. Maximum is 1044464 bytes.
Global variables use 32272 bytes (39%) of dynamic memory, leaving 49648 bytes for local variables. Maximum is 81920 bytes.
C:\Users\jassc\OneDrive\Documents\ArduinoData\packages\esp8266\tools\esptool\0.4.13/esptool.exe -vv -cd nodemcu -cb 115200 -cp COM4 -ca 0x00000 -cf C:\Users\jassc\AppData\Local\Temp\arduino_build_493895/sketch_jun18a.ino.bin
esptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
   setting board to nodemcu
   setting baudrate from 115200 to 115200
   setting port from COM1 to COM4
   setting address from 0x00000000 to 0x00000000
An error occurred while uploading the sketch
   espcomm_upload_file
   espcomm_upload_mem
   setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   read 0, requested 1
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   read 0, requested 1
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   espcomm_send_command: receiving 4 bytes of data
resetting board
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   read 0, requested 1
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   espcomm_send_command: receiving 4 bytes of data
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   espcomm_send_command: receiving 4 bytes of data
   espcomm_send_command: receiving 4 bytes of data
   espcomm_send_command: receiving 4 bytes of data
   espcomm_send_command: receiving 4 bytes of data
   espcomm_send_command: receiving 4 bytes of data
   espcomm_send_command: receiving 4 bytes of data
   espcomm_send_command: receiving 4 bytes of data
   espcomm_send_command: receiving 4 bytes of data
Uploading 250272 bytes from C:\Users\jassc\AppData\Local\Temp\arduino_build_493895/sketch_jun18a.ino.bin to flash at 0x00000000
   erasing flash
   size: 03d1a0 address: 000000
   first_sector_index: 0
   total_sector_count: 62
   head_sector_count: 16
   adjusted_sector_count: 46
   erase_size: 02e000
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   setting serial port timeouts to 15000 ms
   read 0, requested 1
   setting serial port timeouts to 1000 ms
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
closing bootloader
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
error: espcomm_upload_mem failed


Was there a solution to the previous post here other than replacement hardware or Has anyone else overcome this kind of issues reliably? and can share some advice or steps forward?
Thanks,

CraveClone
 
Posts: 2
Joined: Sun Jun 17, 2018 8:37 pm

Re: Huzzah ESP8266 Upload Problems

by saviojdsouza on Tue Jun 19, 2018 9:43 am

Hi CraveClone,

From the screen shot you have shared I notice that the board selected in IDE is ESP8266 Feather Huzzah while your board is an ESP32 Feather Huzzah. So you are selecting the wrong board in IDE and hence the upload error. ( i made the same error in my 1st few attempts though my board was in cyclic reboot even after correcting it and hence had to be replaced).

Refer to below Adafruit link for ESP32 board

https://learn.adafruit.com/adafruit-huz ... r?view=all

There is a section "Using with Arduino IDE" which gives you links on the steps you follow to install ESP32 software. Once complete you will then get the option to select Adafruit ESP32 board in IDE and then you should be able to successfully upload your code.

Let us know your feedback and hope you enjoying coding the ESP32 thereafter.

saviojdsouza
 
Posts: 5
Joined: Sun Jun 10, 2018 5:19 pm

Re: Huzzah ESP8266 Upload Problems

by CraveClone on Tue Jun 19, 2018 10:23 am

Thank you so much! I really did not notice that. I will give this a shot.

CraveClone
 
Posts: 2
Joined: Sun Jun 17, 2018 8:37 pm

Please be positive and constructive with your questions and comments.