Skip to content

RTS level #1019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
corna opened this issue Nov 14, 2015 · 11 comments
Closed

RTS level #1019

corna opened this issue Nov 14, 2015 · 11 comments

Comments

@corna
Copy link

corna commented Nov 14, 2015

Hi
I've wired my ESP-12 + adapter board (like this one) following this schematic but I kept receiving the "warning: espcomm_sync failed" error.
If I disconnect the RTS and DTR pins and I manually put the ESP8266 in the programming mode (GPIO0 low, low pulse on REST), the programming works.
I've analyzed the waveforms using an oscilloscope and this is the result (yellow = RTS, blue = TX of the PC)

ads00001

Why is the ESP kept resetted during the transfer? Is it normal?
I'm on Debian Testing and I'm using the stable (Jul 23, 2015) version of Arduino-esp8266, Arduino 1.6.5-r5. My hardware is a ESP-12 board, a CH340G adapter and some MOSFETs as level adapters.
Thanks

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Links2004
Copy link
Collaborator

no this is not normal, the RTS and DTR stuff is done at the beginning,
during the data transmission reset need to be high.

how have you wired the MOSFETs?
may there is a inversion in the signal.

@corna
Copy link
Author

corna commented Nov 14, 2015

I've connected the CH340G directly to the oscilloscope (as you can see the high level is at 5V)
However the MOSFETs are in a non-inverting configuration

mosfet

@Links2004
Copy link
Collaborator

the schematic looks good.
what have you selected as board in the IDE generic or nodeMCU?

@corna
Copy link
Author

corna commented Nov 14, 2015

Generic

@Links2004
Copy link
Collaborator

on a FTDI it look like this:

Reset:
image

Data:
image

tested on latest git with arduino 1.6.5
can you use something other then the CH430?

@corna
Copy link
Author

corna commented Nov 14, 2015

I've tried with a CP2102 and it works perfectly
Here's the output of the oscilloscope (without the ESP8266, yellow = RTS, blue = TX)

ads00002

So now the question is: why doesn't it work with the CH340G?
I've also tried with the git version of ESP8266-arduino with Arduino 1.6.6, but the results are the same

@Links2004
Copy link
Collaborator

is DTR working normal?
if yes you can try to add a 10uF capacitor in the RTS line then you shut only get short pulses on the ESP.

but I have no idea why the CH340 make this strange thing.
may this a other reason for the transistors in the nodeMCU schematic.

image

@corna
Copy link
Author

corna commented Nov 15, 2015

I've tried the CH340 on windows and it works
Where can I find the code of esptool?

@Links2004
Copy link
Collaborator

there are two esptools one is based on python the other in C (the C version is included in the IDE)

esptool.py https://github.com/Links2004/esptool
esptool.exe https://github.com/igrr/esptool-ck

@hallard
Copy link
Contributor

hallard commented Nov 17, 2015

I've just wrote an article on simple auto-reset with FTDI (no transistors), it will not solve your problem but could be worth reading it

@devyte
Copy link
Collaborator

devyte commented Oct 19, 2017

Closing per #3655 .

@devyte devyte closed this as completed Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants