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 Teensy 3.1/3.2 build errors (Read 3624 times)
Zoran
Newbies
*
Offline


Posts: 3
Joined: Mar 17th, 2017
Teensy 3.1/3.2 build errors
Mar 17th, 2017 at 8:22pm
Print Post  
I am trying to build this program:

void setup(){}
void loop(){}

If I choose "Teensy 3.1/3.2" as a target, I get 50 errors like this one:

   token "{" is not valid in preprocessor expressions
kinetis.h:765: note  in expansion of macro F_CPU
   #if (F_CPU == 240000000)

If I choose "Teensy 3.0" or "Teensy 3.5", everything works fine. Arduino IDE builds the program without problems.

My environment: Arduino 1.8.1, the latest version of Visual Micro, Visual Studio 2015 and 2017 CE, 2 different PCs using Windows 10 Home.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensy 3.1/3.2 build errors
Reply #1 - Mar 17th, 2017 at 9:47pm
Print Post  
Hi,

Please switch on "vmicro>compiler>verbose" and "show build properties" so we can see your config

Post as .txt file or email to info[at]visualmicro.com with link to this post

Thanks


maybe no relevant but please note:-

if the tool bar is set to Debug instead of Release, then you need to avoid methods in same line with no code. This is a better test

Code
Select All
void setup(){

}

void loop(){

}

 

« Last Edit: Mar 17th, 2017 at 10:26pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensy 3.1/3.2 build errors
Reply #2 - Mar 17th, 2017 at 10:28pm
Print Post  
More

I just tried teensy 3.1/3.2 and it worked fine.

It's important to note that teensy has a number of additional options that will appear on the vMicro menu. One of the options controls the speed which is the F_CPU build param. So please state what options you have set? The defaults should just work but we obviously have something wrong.

The build output mentioned in my previous post is important if this post doesn't help solve the issue.
  
Back to top
WWW  
IP Logged
 
Zoran
Newbies
*
Offline


Posts: 3
Joined: Mar 17th, 2017
Re: Teensy 3.1/3.2 build errors
Reply #3 - Mar 18th, 2017 at 6:57am
Print Post  
I found the source of the problem. vMicro - Option 2 drop-down list had a value "CPU Speed:". After change to "CPU Speed: 96 MHz (overclock), the problem disappeared on both computers.
Thank you for your help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensy 3.1/3.2 build errors
Reply #4 - Mar 18th, 2017 at 11:31pm
Print Post  
Great thanks. 

I am not sure why the speed was not selected by default. All board options should select the first item in the list if they have not been set by user.

What is your history with teensy? new user? jusrt installed teensy for the first time? or have previously installed older versions of teensy?

Thanks
  
Back to top
WWW  
IP Logged
 
Zoran
Newbies
*
Offline


Posts: 3
Joined: Mar 17th, 2017
Re: Teensy 3.1/3.2 build errors
Reply #5 - Mar 20th, 2017 at 8:47pm
Print Post  
I have a couple of PCs and many Teensy 3.1 or 3.2 boards. We have been using them for maybe 2 years. I haven't tried other Teensy versions but I used different Arduino IDE and Visual Micro versions. I do not know why 2 of our PCs didn't have any speed selected. I do not see what was different in the configurations.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint