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 Visual Studio 2017 Errors with SAMD Boards (Read 2137 times)
Paul K
Newbies
*
Offline


Posts: 4
Joined: Dec 29th, 2017
Visual Studio 2017 Errors with SAMD Boards
Jan 20th, 2018 at 7:50pm
Print Post  
If I have a sketch for an Uno board, VS2017 does not have errors.  If I change the target board to MKR1000 then VS2017 reports errors with SERCOM being undefined, UsbHostDescriptor being undefined, other names undefined and reports can't open SAMD21G18a.h   

I have even tried the example sketches for the SAMD boards and it shows errors as above.  The sketches work fine in the Arduino IDE.  I am using the latest Arduino IDE.

I used search for the file name and board type but I can't find any posts.

Has anyone else had issues with the MKR1000 board?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio 2017 Errors with SAMD Boards
Reply #1 - Jan 21st, 2018 at 2:31pm
Print Post  
Please be clear if you are reporting intellisense or build errors.

Thanks
  
Back to top
IP Logged
 
Paul K
Newbies
*
Offline


Posts: 4
Joined: Dec 29th, 2017
Re: Visual Studio 2017 Errors with SAMD Boards
Reply #2 - Jan 22nd, 2018 at 1:19am
Print Post  
When I build the application it builds with no errors.  The errors show in the bottom of VS in the error list window.  I guess you would say it is an error in intellisense since it also shows a red underlines in the code window.

Is there a fix for the intellisense errors?

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio 2017 Errors with SAMD Boards
Reply #3 - Jan 22nd, 2018 at 3:27pm
Print Post  
Okay thanks, the build is working fine and same as arduino ide. 

The intellisense sense is separate. We "use" visual studio c++ but tell it where the arduino code is and what the defines are. It is this thatis failing for samd non-zero boards.

I will add the intellseinse fix in the next release due over the next week or so.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint