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 Intellisense: __AVR_ATmega328P__ getting defined twice in %.vsarduino.h file (Read 1308 times)
MichaelK
Newbies
*
Offline


Posts: 2
Joined: Jan 13th, 2018
Intellisense: __AVR_ATmega328P__ getting defined twice in %.vsarduino.h file
Jul 8th, 2018 at 3:57pm
Print Post  
1. What's the proper method for submitting a bug?
2. Per the title, I'm seeing this occur when I select Uno from the drop-down.

  • Win 10 - 64bit (Enterprise)
  • Latest version of Visual Studio 2017 - Community (as of 7/8/18)
  • Latest version of VisualMicro (as of 7/8/18)
  • No Arduino IDE method
« Last Edit: Jul 8th, 2018 at 4:16pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense: __AVR_ATmega328P__ getting defined twice in %.vsarduino.h file
Reply #1 - Jul 8th, 2018 at 4:17pm
Print Post  
Hi

This file is used for intellisense only. Are you seeing an intellisense error? 
Are you sure that one version does not have p and the other capital P?

Unfortunately the define is not part of the main arduino core so Visual Micro has to make two versions to cater for historic and more recent platforms of some boards. This is just to ensure intellisense works.

To establish defines for your hardware that you can reply on I suggest using the Toggle Hidden files so you can inspect the core that you are using more easily. F12/GoTo will also work better.

Thanks
« Last Edit: Jul 8th, 2018 at 4:30pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint