Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Visual Micro does not operate DTR on NodeMCU (Read 15004 times)
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Visual Micro does not operate DTR on NodeMCU
Nov 1st, 2015 at 7:23am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro does not operate DTR on NodeMCU
Reply #1 - Nov 1st, 2015 at 10:47pm
Print Post  
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
Full Member
***
Offline


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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro does not operate DTR on NodeMCU
Reply #3 - Nov 2nd, 2015 at 11:21am
Print Post  
Which arduino ide are you using
  
Back to top
WWW  
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Visual Micro does not operate DTR on NodeMCU
Reply #4 - Nov 2nd, 2015 at 11:23am
Print Post  
1.6.4
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro does not operate DTR on NodeMCU
Reply #5 - Nov 2nd, 2015 at 11:26am
Print Post  
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
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Visual Micro does not operate DTR on NodeMCU
Reply #6 - Nov 2nd, 2015 at 12:48pm
Print Post  
Tim@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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro does not operate DTR on NodeMCU
Reply #7 - Nov 2nd, 2015 at 1:41pm
Print Post  
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
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Visual Micro does not operate DTR on NodeMCU
Reply #8 - Nov 2nd, 2015 at 2:26pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro does not operate DTR on NodeMCU
Reply #9 - Nov 2nd, 2015 at 2:49pm
Print Post  
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
« Last Edit: Nov 2nd, 2015 at 3:14pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Kabron
Full Member
***
Offline


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


Posts: 170
Joined: Nov 1st, 2015
Re: Visual Micro does not operate DTR on NodeMCU
Reply #11 - Nov 4th, 2015 at 2:31pm
Print Post  
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.
« Last Edit: Nov 4th, 2015 at 2:33pm by Kabron »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro does not operate DTR on NodeMCU
Reply #12 - Nov 4th, 2015 at 2:42pm
Print Post  
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 TopicPrint