-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
enable reset control for generic esp8266 boards #22
Comments
What does this change achieve ? |
It is documented in esptool-ck; connect RTS to reset and DTR to GPIO0, then
|
I guess there is no harm to change boards.txt, but this form of resetting is very dependent on the type of USB to serial board you have. |
I tried it with a cheapie pl2303hx under Windows 7, and it works fine.
|
OK. I have one of those, so I'll test, and I can generate a pull request if its easier for Ivan than for him to do the change himself |
The reason I didn't set this as default is that when you open Serial Monitor in Arduino IDE, it pulls both RTS and DTR low, which puts the chip into bootloader mode. In fact some other terminals (screen?) also do that by default. |
Ivan I think this can be dependent on what USB to Serial adapter you have. There are loads of postings on various embedded forums where people have tried to make these adapters to both reset and also to enable the bootloader, but the consensus is that its not reliable and only works for some people. There was a big and heated discussion on Arduino STM32 forum, and in the end I decided not to try to implement it. |
It makes no sense to disable it for everyone because it might not work
|
Okay, makes sense. Will fix. |
"when you open Serial Monitor in Arduino IDE, it pulls both RTS and DTR low, which puts the chip into bootloader mode." |
Option to disable DTR and RTS manipulation in serial monitor has also been added, so no issues with that now! |
iggr, seems THE solution to build an easy way to upload. "Where can I find the option to disable DTR and RTS in serial monitor. (I currently use version 1.6.3 of arduino). |
Jeroem From what I recall the change was in board.txt What I think may be a better solution for everyone is to have a menu defined in boards.txt that allows you to switch whether you want to enable the reset or not. |
Hi Roger, |
I tested the |
Does current Windows release from igrr's repository (arduino-1.6.1-p1-windows.zip) have this |
@ozayturay no this was added in 0dabb25. You need to clone the repository and build the modified Java source to get this feature at the moment, sorry about that. |
Is there a simple tutorial for compiling the source for windows? |
@ozayturay For windows builds you need MinGW, JDK, ant, and some mingw utilities (untar i think).
If you find that something extra needs to be installed, please post an update here so I can add that knowledge into the readme. Thanks. |
Answering my own question; build/howto.txt takes me to https://code.google.com/p/arduino/wiki/BuildingArduino page and it looks simple enough. Edit: I'll let you know if something else is required. |
Here are simple instructions for building Windows version: Compiling Arduino IDE with DTR/RTS Patch for using Serial Monitor with ESP8266Download jdk-8u101-windows-i586.exe from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html and install with default settings. Download https://cygwin.com/setup-x86.exe and install adding wget to the default packages. Enter Cygwin enviroment using the icon from desktop and use the following commands to download necessary tools.
add the following lines at the end of the file (the first two lines is not mandatory)
At this step you must exit and re-enter Cygwin enviroment for the changes to take effect, or you can manually execute the export lines if you don't want to do so. Continue with the following commands to download/patch/build the Arduino source.
Press enter when you are asked for a version number to choose the default value and after a long downloading and building process you can find your freshly build arduino-1.6.11-windows.zip file in the following folder:
I hope it helps someone. ;) Edit 1: Don't forget to copy libiconv-2.dll from hardware\tools\avr\libexec\gcc\avr\4.8.1 to the root (side by side with arduino.exe) of your freshly installed arduino-1.6.1 installation. :) NOT NEEDED ANYMORE Edit 2: Serial Monitor is working with DTR and RTS connected. Thanks Ivan. :) Edit 3: I updated the compile instructions. It works for 1.6.6 or above. ;) |
ozayturay, Could you share your executable. I am dying for this solution. |
Here it is: https://dl.dropboxusercontent.com/u/18575245/ESP8266/Arduino-1.6.1_ESP8266.zip Copy the included files over your current ESP8266 Arduino folder (probably extracted from arduino-1.6.1-p1-windows.zip) and have fun. ;) |
@JeroenBeemster The next release is currently blocked by availability of a proper windows toolchain, as discussed in #23 and elsewhere.
|
Wow that CI sever is really cool. Is the build process automatic or manually activated by you when required? |
@ozayturay It's configured to build whenever there is a new commit, but it's also possible to run the build manually. |
@ivan Thanks. Its working |
@igrr Проще говоря, при обмене через UART будет постоянно дрыгаться GPIO0, что прибьет I2C передачи |
Now that we are using the Boards Manager, #22 (comment) becomes more relevant. I think the change to If you agree, please create a pull request to https://github.com/arduino/Arduino containing the change. |
2 NPN transistors did the trick See #533 |
Hi, |
Looks like |
It is now getting somewhere else. I don't know about politics, people in charge, global orientations, ... |
Is the version of the development environment that had configurable DTR/RTS lines available anymore? I notice that the option is in the ESP8266 for arduino package's boards.text, but it doesn't have any effect on the IDE. Edit: I've been reminded that I can just use screen or minicom or whatever instead of the Arduino IDE serial monitor. |
Compilation instuctions in the comment #22 (comment) above updated, 1.6.11 compiled without problems and works as expected. |
one of the patches submitted to original arduino has just been merged (#22 (comment)) |
w00t! |
Since there is no |
@d-a-v Don't worry, it's all up to date with 108 poll request! ;) |
change
esp01.upload.resetmethod=none
in esp8266/boards.txt to:
esp01.upload.resetmethod=ck
The text was updated successfully, but these errors were encountered: