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
Normal Topic ESP8266 OTA debugging (Read 8622 times)
AZ2
Newbies
*
Offline


Posts: 1
Joined: Jun 19th, 2016
ESP8266 OTA debugging
Jun 19th, 2016 at 11:06am
Print Post  
should ESP8266 debugging work?
Even for the sample blink sketch on ESP8266 debugging does not work.
For my project the WiFi Manager hangs, when it tries to get the connect status. (ESP8266 is connceted to the WLAN router, but the check hangs, status is not updated)
« Last Edit: Feb 12th, 2017 at 2:16pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 debugging
Reply #1 - Jun 19th, 2016 at 11:39am
Print Post  
Hi,

Wifi debugging is currently limited to Arduino boards that offer a terminal over wifi. For example, if I recall,  the Arduino Yun provides an SSH connection that works like a serial connection (can send/receive)

Last time I looked the ESP8266 doesn't have this yet but it's shown as "work in progress" in the ESP code.

So you have to debug using usb/serial. You can still upload using wifi but will need the usb connection or spare digital pins for debug. To do this you need to set the "debugger>Local Port" or, for mor eadvanced settings, follow the debugging with other ports and pins guide in the documentation.

If you try to debug on an IP address that does not support "terminal mode" there was a 7 second delay opening the debugger prior to it failing to start. I thought this was resolved in a recent update and I am not sure from your report if you are hitting this issue or not. 

Lastly, I am not sure how any of this relates to the wifi status you mention or were you saying that is what you are trying to debug? Sorry for confusion.
  
Back to top
WWW  
IP Logged
 
Bob666
Newbies
*
Offline


Posts: 4
Joined: Feb 16th, 2016
Re: ESP8266 debugging
Reply #2 - Dec 2nd, 2016 at 7:36am
Print Post  
Does anyone know whether this is now possible (ie wifi debugging with the ESP8266)?

Thanks
Bob
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 debugging
Reply #3 - Dec 2nd, 2016 at 3:44pm
Print Post  
Good question. It's the next job on the list. Maybe for this weekend.

Currently only the secure socket system used by the arduino yun (not recommended) is the only IP debug option but the 8266 has some good serial/tcp code now so we will use it.

Current Serial + OTA debug

If the unit is close by a pc you can upload with OTA and debug with serial usb. You get the fast upload of ota but no good for debug if the unit is remote. Set the vMicro>debugger>local port to the usb com port.

  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 debugging
Reply #4 - Dec 6th, 2016 at 2:10pm
Print Post  
The latest release supports v1 of IP debug for the Esp8266.

The 8266 must be using OTA. 

Update of variables during debug is not yet supported so don't try it.

Debug should automatically stop when you disconnect the debugger in Visual Studio. This is to try to avoid the esp8266 from being stuck in a break-point when not debugging. 

I also recommend switching on "vMicro>Debugger>Full Speed" to avoid the esp from slowing down.
  
Back to top
WWW  
IP Logged
 
Bob666
Newbies
*
Offline


Posts: 4
Joined: Feb 16th, 2016
Re: ESP8266 OTA debugging
Reply #5 - Dec 10th, 2016 at 7:14am
Print Post  
Thanks, will give it a try.
« Last Edit: Feb 12th, 2017 at 2:17pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
dob
Newbies
*
Offline


Posts: 5
Joined: May 31st, 2017
Re: ESP8266 OTA debugging
Reply #6 - Jan 1st, 2019 at 3:49pm
Print Post  
Is the update variable thing ever gonna be available?
« Last Edit: Jan 1st, 2019 at 3:50pm by dob »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 OTA debugging
Reply #7 - Jan 1st, 2019 at 6:23pm
Print Post  
@dob

Update of live debugger variables when using wifo instead of serial?

I expect we will move to GDB as an option for GDB capable boards.

Currently we support VS2012 and 2013 which has made this move complicated. However Microsoft have made some changes for the next release of VS2019 which makes it impossible to support 2012 and 2013 so it seems like a good time to discontinue support for those two older IDE versions. 

Question: Did you ever buy Visual Micro?
« Last Edit: Jan 1st, 2019 at 6:26pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint