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 Request support for Digital and Analog Debug Reports for an Unsupported Board (Read 2812 times)
goj immypi
Junior Member
**
Offline


Posts: 14
Joined: Jan 20th, 2017
Request support for Digital and Analog Debug Reports for an Unsupported Board
Feb 11th, 2018 at 7:53pm
Print Post  
I, too am having problems opening the serial port from Visual Studio. The problem occurs with M5Stack ESP32 device in debug mode. 

I *am* able to connect to the M5Stack ESP32 in release mode, however initially nothing ever displays; I always need to manual click "rts" to actually have serial data display.

I *am* able to connect to Adafruit Feather 32u4 in *both* debug and release modes.

My  M5Stack ESP32 (*edit2) serial port is Silicon Labs CP210x USB to UART Bridge (COM4) 11/15/2017 Version 10.1.1951

My 32u4 (*edit2) serial port simply says "USB Serial Device (COM8)" in device manager. Apparently default Microsoft drivers. 6/21/2006 (yes, '06!) Version 10.0.16299.15

*edit 2 - this may be the same issue as: http://www.visualmicro.com/forums/YaBB.pl?num=1514411767/

During debug compile-time, the ESP32 complains with:

Code
Select All
VM_Boards.h: 653:2: error: #error "Please edit Boards.h with a hardware abstraction for this board"
   #error "Please edit Boards.h with a hardware abstraction for this board"
   for (analogPin = 0; analogPin < TOTAL_ANALOG_PINS; analogPin++)
 


and at the end:
Code
Select All
Error compiling libraries
   Debug Build Error: This hardware might not support the default Visual Micro Debugger.
	If this project is using OTA/WiFi upload then please use the vMicro>Debugger menu to set the Serial COM and Remote port for the debugger.
	Otherwise switch the toolbar from 'Debug' to 'Release' and build again.
		or switch off Automatic Debugging
		or configure the SoftwareSerial debugger option.
Debug build failed for project 'M5StackConsole' 


curiously, I have only one Boards.h file on my entire computer, located in:
Code
Select All
 C:\Program Files (x86)\Arduino\libraries\Firmata 


but it would seem unlikely that VisualMicro is including  this one for ESP32 or 32u4, so perhaps the proper Boards.h file is simply missing? Or a different M5Stack USB driver?

Help-About:
Microsoft Visual Studio Enterprise 2017 
Version 15.5.6
VisualStudio.15.Release/15.5.6+27130.2027
Microsoft .NET Framework
Version 4.7.02556

Visual C# 2017   00369-90250-38212-AA522
Microsoft Visual C# 2017

Visual C++ 2017   00369-90250-38212-AA522
Microsoft Visual C++ 2017

Arduino for Visual Studio   1.0

Tools-Extensions and Updates:
Arduino IDE for Visual Studio 2/10/2018 
Version 1801.27.0

*edit: added USB driver dates and version info
*edit(2): fixed mixed up USB driver text for ESP32 vs 32u4.
« Last Edit: Feb 11th, 2018 at 8:51pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Request support for Digital and Analog Debug Reports for an Unsupported Board
Reply #1 - Feb 11th, 2018 at 8:54pm
Print Post  
Hi,

You are not having usb problems.

The error you see says that Boards.h does not know about your board. Boards.h is used by the debugger if you enable Digital/Analog/FreeMemory reports.

When I get time I will look if the board manufacturer has published the code required for firmata, if so then I will add support to visual micro.

  
Back to top
IP Logged
 
goj immypi
Junior Member
**
Offline


Posts: 14
Joined: Jan 20th, 2017
Re: Request support for Digital and Analog Debug Reports for an Unsupported Board
Reply #2 - Feb 11th, 2018 at 9:56pm
Print Post  
actually, I *was* having USB problems, but in all my fussing to get it resolved, some setting in Visual Studio must causing this error.

The problem I had with USB drivers was related to the version as noted in another thread. Setting to older CP210x driver (6.7.4.261) instead of the most recent version fixes the USB problem.

The debug compile error however... no idea. Creating a new project and copying everything seems to have resolved. I can compile and debug my ESP32 M5Stack code.

If you are interested, I save the old, problematic version here:

https://github.com/gojimmypi/LoRa-GPIO/tree/master/M5StackConsole-bad

The working version is here:

https://github.com/gojimmypi/LoRa-GPIO/tree/master/M5StackConsole

hopefully this helps before you go chasing the header def problem Smiley

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Request support for Digital and Analog Debug Reports for an Unsupported Board
Reply #3 - Feb 12th, 2018 at 1:37pm
Print Post  
Hi,

Yes v10 of the USB driver is not for your op sys it is for windows universal. I confirmed a c~ test here and also read the manufacturers windows versions note on the download site for the driver. http://www.visualmicro.com/forums/YaBB.pl?num=1515602300

The debug issue was that you had enabled automatic analog, digital or other graphical views in the debug options for the project. These views require information about the board such as number of digital pins. Your hardware is unknown hence the "error" telling you the hardware is unknown.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint