Skip to content
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

DTR/RTS seem to get manipulated even if reset method is set to none #28

Open
emiliojazz opened this issue Mar 9, 2016 · 5 comments
Open

Comments

@emiliojazz
Copy link

Hello, I'm having a problem trying to upload a sketch onto ESP8266 using an Arduino MEGA as a usb serial adapter.
Please note that the MEGA is not merely used as a serial adapter, but it goes into that mode by issuing a specific command from the terminal. Then it goes to serial mirroring mode, and triggers the ESP8266 to go into bootloader mode. It should be ready to flash the ESP8266.
The problem is that when I start flashing from Arduino IDE (setting the resetmethod to none) the Arduino board gets resetted so I lose the serial mirroring connection, and the esptool rightly outputs espcomm_sync_failed, espcomm_open_failed stuff.
What am I missing? It should be fairly trivial to upload a sketch when the serial mirroring is activated and NO DTR/RTS intervention is set.
Thank you very much!
Emiliano

@emiliojazz emiliojazz changed the title DTR/RTS getting manipulated even if reset method is set to none DTR/RTS seem to get manipulated even if reset method is set to none Mar 9, 2016
@t3chguy
Copy link

t3chguy commented Mar 14, 2016

I believe I am having the same issue (at least same symptoms) with a Genuino101 (which doesn't really care for DTR/RTS but it is still breaking things)

@igrr
Copy link
Owner

igrr commented Mar 16, 2016

When OS does this happen on?

@emiliojazz
Copy link
Author

@igrr I'm working on Linux Ubuntu 14.04 using Arduino IDE 1.6.6 and esptool 0.4.8

@emiliojazz
Copy link
Author

The culprit was the serial driver, it manipulates DTR/RTS every time an "open" on the serial port is called.
For now I found a workaround by increasing the timeout time in esptool and checking an hardware button at boot to decide if to go in mirroring mode or not.
Definitely not the easiest way to do it...but I didn't find a way to disable DTR/RTS manipulation by the driver so far (seems to be possible with Windows...strangely).
Thank you for your patience, and hope that this post would help someone stucking with the same problem.
Regards

@igrr
Copy link
Owner

igrr commented Mar 21, 2016

I came to the same conclusion. I'm able to disable DTR/RTS manipulation on OS X, but on Linux the driver handles things a bit differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants