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: invalid macro definition: ARDUINO_AVR_ATTINY45-8 (Read 3528 times)
Slimicus
Newbies
*
Offline


Posts: 2
Joined: Mar 22nd, 2015
IntelliSense: invalid macro definition: ARDUINO_AVR_ATTINY45-8
Mar 22nd, 2015 at 9:55pm
Print Post  
It looks like it might be the "-" in the macro definition. AVR Definitions that don't have a - seem to be working fine, but I'm having the same problem with 

"ARDUINO_AVR_ATTINY45-8"

If I edit the project file and change the preprocessor definitions, and change that one to:

"ARDUINO_AVR_ATTINY45_8"

Intellisense and error checking start working fine again. Was this issue ever addressed?

I'm fairly certain there's plenty of code that depends on the appropriate definition of ARDUINO_AVR_ATTINY45-8, I just changed it briefly to test if that was the problem.

A quick work-around is to pick a board type without a - in it until you need to compiled and then compile.. but that can be sketchy if you're burning directly to boards without a bootloader.
« Last Edit: Mar 22nd, 2015 at 10:08pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Slimicus
Newbies
*
Offline


Posts: 2
Joined: Mar 22nd, 2015
Re: IntelliSense: invalid macro definition: ARDUINO_AVR_ATTINY45-8
Reply #1 - Mar 22nd, 2015 at 10:03pm
Print Post  
I looked a bit further and found that two things are happening, "-" is used in the command line to specify the options such as the preprocessor definitions, so I was checking to see if there was a way to escape that character, but this link:

https://msdn.microsoft.com/en-us/library/teas0593.aspx

specifies the appropriate use of the #define directive for Visual C++, and it says it should be:

#define identifier token-string(opt)

According to this page:

https://msdn.microsoft.com/en-us/library/565w213d.aspx

a dash is not allowed as part of an identifier. So it would seem the problem is with that particular definition. Is that provided by atmel, or by Visual Micro?

« Last Edit: Mar 22nd, 2015 at 10:08pm 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: invalid macro definition: ARDUINO_AVR_ATTINY45-8
Reply #2 - Mar 22nd, 2015 at 10:09pm
Print Post  
Hi,

Last year Arduino started using this type of define but it isn't relevant for all boards.

The ATTINY boards doesn't need it we will remove it in the next service pack due in a week or so

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint