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 MKR1000 header files (Read 4907 times)
ELAN
Newbies
*
Offline


Posts: 3
Location: Switzerland
Joined: Jan 11th, 2013
MKR1000 header files
Sep 15th, 2016 at 11:38am
Print Post  
Hello,
In our project (MKR1000 with VS2015 and the latest VisualMicro Plugin) we use the hardware definitions like "GCLK_STATUS_SYNCBUSY" and a lot of others. The compiler says: identifier xxx is undefined.

We can compile the same source code with the Arduino IDE (1.6.11) without any errors.

Do we have to include a special header file ?

Thanks for your help.
  
Back to top
 
IP Logged
 
ELAN
Newbies
*
Offline


Posts: 3
Location: Switzerland
Joined: Jan 11th, 2013
Re: MKR1000 header files
Reply #1 - Sep 15th, 2016 at 12:06pm
Print Post  
Additional info: We can compile and run the sketch, but the defines like "GCLK_STATUS_SYNCBUSY" will be underlined in the VS2015 editor with the red line.
How can we prevent this red lines and also the red markers in the vertical scrollbar ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: MKR1000 header files
Reply #2 - Sep 15th, 2016 at 12:11pm
Print Post  
Hi,

What you are saying is that the compile works correctly same as Arduino IDE but the intellisense is giving false errors.

Please switch on vMicro>Compiler>Verbose and vMicro>Compiler>Show build properties. Then build and email the output to info[at]visualmicro.com

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: MKR1000 header files
Reply #3 - Sep 15th, 2016 at 5:16pm
Print Post  
Thanks for sending the build output. The output shows that the compile is working OK

I think you are encountering intellisense errors. I wasn't able to reproduce your exact error but whilst testing intellisense I could see that there were more errors than should be because it didn't know which samd header to use. 

A minor update for Visual Micro 1609.15 has been released to the gallery with the correct intellisense header for the zero/mkr1000 boards.

Please let me know if that solves the intellisense issue for you.

Otherwise please post a screen shot with the code and error on screen

Thanks
  
Back to top
IP Logged
 
ELAN
Newbies
*
Offline


Posts: 3
Location: Switzerland
Joined: Jan 11th, 2013
Re: MKR1000 header files
Reply #4 - Sep 16th, 2016 at 8:35pm
Print Post  
Success: With 1609.15 I have no unresolved intellisense markers for the samd/mkr1000 specific items.
Thank you for the update.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: MKR1000 header files
Reply #5 - Sep 16th, 2016 at 8:47pm
Print Post  
Great. Thanks for the update and the report
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint