M
M
Maxim Krasnov2020-01-15 21:09:58
Arduino
Maxim Krasnov, 2020-01-15 21:09:58

How to flash ESP-01S with Arduino Uno CH340G?

There is Arduino Uno CH340G , ESP-01S , Bi-Directional Logic Level Converter (BD-LLC).
I connect the whole thing as follows:
Arduino - BD-LLC
5V - HV
3.3V - LV
GND - GND
RX - RX (HV)
TX - TX (HV)
ESP-01S - BD-LLC
RX - RX (LV)
TX - TX (LV) ESP
-01S - Arduino
3V3 - 3.3V
EN - 3.3V
GND - GND

ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 2408, room 16 
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0 
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0 
tail 8
chksum 0xd8
csum 0xd8

2nd boot version : 1.6
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

rf cal sector: 249
rf[112] : 00
rf[113] : 00
rf[114] : 01

SDK ver: 2.0.0(5a875ba) compiled @ Aug  9 2016 15:12:27
phy ver: 1055, pp ver: 10.2

hJ⸮F⸮

Responds to AT commands (115200 baud).
Trying to put ESP-01S into programming mode by connecting IO0 (ESP-01S) to GND (Arduino) . When uploading, I see the following (74880 baud):
ets Jan 8 2013,rst cause:2, boot mode:(1,6)
When I try to flash an empty sketch, I get the following error:
esptool.py v2.8
Serial port /dev/cu.usbserial-1430
Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):
  File "/Users/quickdevel/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/upload.py", line 65, in <module>
    esptool.main(cmdline)
  File "/Users/quickdevel/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool/esptool.py", line 2890, in main
    esp.connect(args.before)
  File "/Users/quickdevel/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool/esptool.py", line 483, in connect
    raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Zaitsev, 2020-01-16
@KonstantineZ

When powered from an arduino, consider the consumption - that the original, that the Chinese clones (with a few exceptions) receive 3.3v from the USB-UART converter, and no more than 50 mA can be obtained via the 3.3 line. It is possible that when flashing, the consumption increases and overloads the converter, because of which either the esp or the converter itself freezes on the duin. Try 3.3v from a separate 200 milliamp converter.

A
Armenian Radio, 2020-01-15
@gbg

FZPYWM1JQGYDOXD.LARGE.jpg?auto=webp&widt
The circuit was assembled incorrectly - see the picture

M
Maxim Krasnov, 2020-01-16
@QuickDevel

It doesn't seem right, but I connected RX directly to ESP-01 - Arduino. While it seems to be sewn stably.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question