Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Visual Micro does not operate DTR on NodeMCU (Read 10768 times)
Kabron
Junior Member
**
Offline



Posts: 95
Visual Micro does not operate DTR on NodeMCU
Nov 1st, 2015 at 7:23am
 
While Arduino IDE flashes the device without any human intervention, in case of Visual Micro it is necessary to keep Flash button pressed at the beginning. Obviously there are some adjustments to solve this. Does anybody know?
Thanks in advance.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10464
United Kingdom
Re: Visual Micro does not operate DTR on NodeMCU
Reply #1 - Nov 1st, 2015 at 10:47pm
 
Hi,

Thanks for the report.

I can see there are some relatively new settings in the esp config to instruct dtr/rts to be disabled to cause a reset.

Which version of the arduino ide are you using? Where downloaded from?

Thanks
Back to top
 
WWW  
IP Logged
 
Kabron
Junior Member
**
Offline



Posts: 95
Re: Visual Micro does not operate DTR on NodeMCU
Reply #2 - Nov 2nd, 2015 at 11:19am
 
in boards.txt "nodemcuv2.upload.resetmethod=ck"
solved the problem
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10464
United Kingdom
Re: Visual Micro does not operate DTR on NodeMCU
Reply #3 - Nov 2nd, 2015 at 11:21am
 
Which arduino ide are you using
Back to top
 
WWW  
IP Logged
 
Kabron
Junior Member
**
Offline



Posts: 95
Re: Visual Micro does not operate DTR on NodeMCU
Reply #4 - Nov 2nd, 2015 at 11:23am
 
1.6.4
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10464
United Kingdom
Re: Visual Micro does not operate DTR on NodeMCU
Reply #5 - Nov 2nd, 2015 at 11:26am
 
Thanks. Your solution that you mention is unrelated to visual micro. These are internal settings for the toolchain which means that Arduino and vm should do the same things.

Where did you download 1.6.4?
Back to top
 
WWW  
IP Logged
 
Kabron
Junior Member
**
Offline



Posts: 95
Re: Visual Micro does not operate DTR on NodeMCU
Reply #6 - Nov 2nd, 2015 at 12:48pm
 
Visual Micro wrote on Nov 2nd, 2015 at 11:26am:
Thanks. Your solution that you mention is unrelated to visual micro. These are internal settings for the toolchain which means that Arduino and vm should do the same things.

Where did you download 1.6.4?

Strange question. https://www.arduino.cc/en/Main/Software
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10464
United Kingdom
Re: Visual Micro does not operate DTR on NodeMCU
Reply #7 - Nov 2nd, 2015 at 1:41pm
 
Ok.

If you search the issue on the web esp8266 made a hybrid arduino.exe to get around the issue (and others)

Since Arduino 1.6.2 they have standardized and now use the main arduino ide however not everyone knows that and it can cause confusion when people say they are using the arduno ide.

We need to log a question on the esp site because the change you made is not something that affects visual micro. One question is why did it work in the arduino ide with the standard config but not in visual micro and what is the difference between the two options you used?
Back to top
 
WWW  
IP Logged
 
Kabron
Junior Member
**
Offline



Posts: 95
Re: Visual Micro does not operate DTR on NodeMCU
Reply #8 - Nov 2nd, 2015 at 2:26pm
 
I have two Visual Micro installation: at home and at office.
The office one works fine, at home PC required to push the Flash button. Did not inspect boards.txt at home PC yet.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10464
United Kingdom
Re: Visual Micro does not operate DTR on NodeMCU
Reply #9 - Nov 2nd, 2015 at 2:49pm
 
Can you confirm that on the home pc the arduino ide works?

Yesterday I published a new version of visual micro which responds differently to a few flags in the espconfig serial.disableDTR=true and serial.disableRTS=true.  These settings might be redundant since the newest esptools manage the reset and not visual micro.

The changes might have no effect what so ever, might fix it or might break it. I would appreciate your trying it out so that I can revert the changes of they don't work

If you try it and find the upload is worse than before then you can revert to the last release here https://visualstudiogallery.msdn.microsoft.com/069a905d-387d-4415-bc37-665a5ac9c...

I would also be interested to know the version of esp firmware you have installed at home and at work (see boards manager)

Thanks
Back to top
« Last Edit: Nov 2nd, 2015 at 3:14pm by Visual Micro »  
WWW  
IP Logged
 
Kabron
Junior Member
**
Offline



Posts: 95
Re: Visual Micro does not operate DTR on NodeMCU
Reply #10 - Nov 2nd, 2015 at 3:13pm
 
Ok, i'll try
Back to top
 
 
IP Logged
 
Kabron
Junior Member
**
Offline



Posts: 95
Re: Visual Micro does not operate DTR on NodeMCU
Reply #11 - Nov 4th, 2015 at 2:31pm
 
Well,
reset method in boards.txt affects only on Arduino IDE programming behavior.
At home PC I have two versions of ESP packages installed:
1.6.5-1160-gef26c5f and
1.6.5-947-g39819f0
the first one is the active. They have different reset methods:
1.6.5-1160
nodemcu.upload.resetmethod=nodemcu
nodemcuv2.upload.resetmethod=nodemcu
1.6.5-947
nodemcuv.upload.resetmethod=ck
nodemcuv2.upload.resetmethod=ck

Changing to ck makes Arduino IDE programming impossible
with no affect to Visual Micro.

I also have ESP8266 generic 8-pin modules. I connect them to FTDI chip as following:
DTR - GPIO0
RTS - RESET
in the boards.txt al settings for ESP generic are set to ck.
These modules are flashed perfect in Adruino and Visual Micro.

That is all for the moment.
Back to top
« Last Edit: Nov 4th, 2015 at 2:33pm by Kabron »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10464
United Kingdom
Re: Visual Micro does not operate DTR on NodeMCU
Reply #12 - Nov 4th, 2015 at 2:42pm
 
I reverted the visual micro build yesterday but the changes can be enabled for testing from boards.txt

Before we do this it would help to have clarification from the esp site about how their reset methods are supposed to work. I cant see how with method one and two visual micro has any control
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print