1

I have a Arduino uno board, ESP-01 board and a logic level shifter (bidirectional) and to program the esp module i wired my Arduino and esp like this

Arduino uno(atmega328p removed) --> level shifter --> ESP-01
5v --> highvolt
3v3 --> lowvolt
TX --> ch1 --> TX
RX --> ch2 --> RX
proper ground connections

but when i click upload the RX pin lights up indicating its receiving data but esp doesn't respond to that when i reset the module while its uploading the compiler throws this

Serial port COM3
Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):
 File "C:\Users\TRAJU\AppData\Local\Arduino15\packages\esp8266\hardware\esp82662円.7.4/tools/upload.py", line 65, in <module>
 esptool.main(cmdline)
 File "C:/Users/TRAJU/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py", line 2890, in main
 esp.connect(args.before)
 File "C:/Users/TRAJU/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/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
_
the selected serial port _
 does not exist or your board is not connected

It as working fine yesterday and it stopped today :(

Please help and thanks in advance.

asked Feb 3, 2021 at 7:18
0

1 Answer 1

2

I found my problem.

esptool.py uploads the firmware at 115200 baud rate, which my logic level converter couldn't handle. I found this out after writing this question. I thought of connecting RX and RX directly to the ESP module's RX and TX and it uploaded the program. Maybe I am wrong. Please, if any one know why this happened I am curios to know. Thanks in advance. ;)

timemage
5,6391 gold badge14 silver badges25 bronze badges
answered Feb 3, 2021 at 9:48
4
  • Please accept this as the soulution, because the question is answered now. Commented Feb 3, 2021 at 12:31
  • It will take a day or two before you can do that. Commented Feb 3, 2021 at 13:15
  • Re: "if any one know why this happened", I would put a scope on it an look at the signals, particularly the rising edges because you may have something based roughly on this design. Questions about that belong more squarely on ASE, though you can probably work it out if my suspicions about the relevance of the appnote happen to be correct. You should be doing something to address 5V -> 3.3V, rather than nothing in any case. Commented Feb 3, 2021 at 21:13
  • @timemage if i had a scope i wouldn't post this question at all, i could debug it myself (i wish i had a scope) and ya it says it takes around two days to accept my answer Commented Feb 4, 2021 at 4:40

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.