Go Down

Topic: Communication with Generic ESP8266 (Read 669 times) previous topic - next topic

Tom_Hughes

Cannot establish communications with Generic ESP8266 Board

Win7
Generic ESP8266
Device Manager shows - "USB-SERIAL CH340(COM9)"


Here is the Error I am getting

C:\Users\TJ\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.9/esptool.exe -vv -cd ck -cb 9600 -cp COM9 -ca 0x00000 -cf C:\Users\TJ\AppData\Local\Temp\arduino_build_428318/BlinkWithoutDelay.ino.bin
esptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
   setting board to ck
An error occurred while uploading the sketch
   setting baudrate from 115200 to 9600
   setting port from COM1 to COM9
   setting address from 0x00000000 to 0x00000000
   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
   read 0, requested 1
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
   read 0, requested 1
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
   read 0, requested 1
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed


Juraj

RX/TX not 'crossed'? GPIO0 not connected to ground?

Tom_Hughes

Thanks Pert, I will dig some more.

Thanks Juraj

Tom_Hughes

Is there any way I can write my own program for initializing the ESP8266 DevBd ?

Tom_Hughes

Since I can't find any combination of Board selections in the Arduino IDE to communicate with the ESP8266 DevBd

Juraj

if you do not know the parameters of your esp, use Espressif Flash Download Tool (Windows). it can detect the settings

Tom_Hughes

Juraj - I can communicate with the ESP8266 using LuaLoader, and Esplorer, but not with the Arduino IDE.  Can you please explain to me what the" Espressif Flash Download Tool" is , and how to use it?

Tom_Hughes

Pert - I can check all the signals, but what good would that do if I can't control them ?

Juraj

Espressif is the company developing and manufacturing the ESP chips. They have a nice site with docs and tools. One of the tools is Flash Download Tool used to flash the ESPs.

Did you try higher baudrate? For me the 9600 baud rate didn't work with esptool used in IDE.

Juraj

Supports your board DTR signal to put it to bootloader mode?

Tom_Hughes

I can Flash it using the ESP Flasher. I have tried different boards in Board Manager, and I have tried different Baud rates, but Arduino does not communicate.

Juraj

every flashing tool is nicknamed flasher. which one was it? you needed to connect gpio0 to ground for flashig or the board did it by self?

if you want help on this forum provide product links and information and answer the questions we ask. there are many possibilities and we do not see what you have there on desk.

Tom_Hughes

1) The flash button on the board connects the GPIO to Gnd. So I hold the Flash button down while the board is
    being flashed. This works well with the LuaLoader IDE. I have also tried hardwiring the GPIO to GND.

2) The Flasher I am using with Arduino IDE is the same I use for the LuaLoader IDE - ESP8266Flasher.exe  - 6,934KB.
    Is this the wrong Flasher, and if so Which Flasher should I us?  The Arduino Web site indicates their Flasher is
    only for an Arduino board.

Juraj

in arduino IDE I installed the esp8266 core package. And I hit the Upload button and the sketch uploads. I do not care about the tool.

Go Up