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 Issue debugging in VS2017 (Read 4797 times)
DJ4000
Junior Member
**
Offline


Posts: 15
Location: Denmark
Joined: Jun 25th, 2017
Issue debugging in VS2017
Jun 25th, 2017 at 11:32am
Print Post  
Hi,

I have the following error messge when I try to debug some Arduino MKR1000 code:  #error "Please edit Boards.h with a hardware abstraction for this board".

It was working fine before I upgrade VS to 15.2 (24430.14) and also upgrade the board to 1.6.15.

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue debugging in VS2017
Reply #1 - Jun 25th, 2017 at 1:48pm
Print Post  
Thanks, this means you have enabled the debugger digital or analog pin viewers/reports. 

The MKR1000 has been added to the known pin maps in boards.h so will work in the next update due in the next day or so.
  
Back to top
WWW  
IP Logged
 
DJ4000
Junior Member
**
Offline


Posts: 15
Location: Denmark
Joined: Jun 25th, 2017
Re: Issue debugging in VS2017
Reply #2 - Jun 26th, 2017 at 2:17pm
Print Post  
What do you mean by "enabled the debugger digital or analog pin"?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue debugging in VS2017
Reply #3 - Jun 26th, 2017 at 2:25pm
Print Post  
On the vmicro>debugger menu are options "Monitor digital pins", "Monitor analog pins". When checked the debugger will show live graphical representations of the pins.

The same options can also be enabled in the "micro debug reporting" section of the visual micro project properties http://www.visualmicro.com/page/User-Guide.aspx?doc=Project-Properties-Reference...

The 3rd way to enable these report is using the special watch expressions syntax {@ReportDigital} {@ReportAnalog}

The default is not to do any of this so it looks like one or more of these options have been enabled for your install or project.
  
Back to top
WWW  
IP Logged
 
DJ4000
Junior Member
**
Offline


Posts: 15
Location: Denmark
Joined: Jun 25th, 2017
Re: Issue debugging in VS2017
Reply #4 - Jun 26th, 2017 at 4:02pm
Print Post  
Hi again,

I have checked if any of the above settings have been activated and I am afraid none of these are.

I did try to activate once the "full speed" at some point but I am running without now.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue debugging in VS2017
Reply #5 - Jun 26th, 2017 at 4:11pm
Print Post  
Thanks.

I just checked the FreeMemory report on the vmicro menu and in project properties (same places as other settings) also causes the file to be included in the debug build.

The I2C scan in project properties also does this.

If unsure then zip and email the vcxproj file from the project folder and the files from in the \_vm folder below the project to info@visualmicro.com

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


Posts: 15
Location: Denmark
Joined: Jun 25th, 2017
Re: Issue debugging in VS2017
Reply #6 - Jun 26th, 2017 at 4:19pm
Print Post  
Indeed you spot it, the free memory flag was on.  I did uncheck and could compile like a charm.  Thank you so much for your assistance.
Your tool and support are amazing!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint