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 6 june update produce weird code with Teensy (solved, user edited boards.txt config error)) (Read 4520 times)
amra
Newbies
*
Offline


Posts: 5
Joined: Jun 7th, 2016
6 june update produce weird code with Teensy (solved, user edited boards.txt config error))
Jun 7th, 2016 at 12:47pm
Print Post  
I'm using in Visual Studio 2015 and arduino ide 1.6.9 plus last Teensyduino from some month, no problem at all.
But today I've just updated (june update) and noticed that my Teensy 3.2 MCU run the code really weird, same code sent by arduino ide is fine.
It looks worst when serial is inited.

What happen?
I have some test repeating code with delay's in between. The delay randomly disappear so the code run like a rocket for some time, then delay's get back, runs normally for a sec or two, then again. This is totally random and looks like other delay's inside libraries get affected as well! There's a way to downgrade to prior version?
« Last Edit: Jun 10th, 2016 at 6:59pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: 6 june update produce weird code with Teensy
Reply #1 - Jun 7th, 2016 at 2:03pm
Print Post  
Hi,

Please switch on VMicro>Compiler>Show build folder

Then build and you will see a link to the temp builder folder appear in the output

Please email the project_name.cpp to info[at]visualmicro.com

Also please switch the tool bar from Debug to Release (if not already on Release). Then try another upload to see if different.
  
Back to top
IP Logged
 
amra
Newbies
*
Offline


Posts: 5
Joined: Jun 7th, 2016
Re: 6 june update produce weird code with Teensy
Reply #2 - Jun 7th, 2016 at 2:23pm
Print Post  
emailed.
switching from debug to release doesn't change much. Same issues.
There's a way to downgrade by one version in the meantime?
« Last Edit: Jun 7th, 2016 at 2:24pm by amra »  
Back to top
 
IP Logged
 
amra
Newbies
*
Offline


Posts: 5
Joined: Jun 7th, 2016
Re: 6 june update produce weird code with Teensy
Reply #3 - Jun 7th, 2016 at 2:33pm
Print Post  
Hello, solved the mistery! When I switch to Teensy 3.2 the default CPU speed rise to 168Mhz and at that speed it's really unstable, I have commented the 168Mhz speed in boards file and now everithing works as expected.
Version before was always selecting 96Mhz as default.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: 6 june update produce weird code with Teensy
Reply #4 - Jun 7th, 2016 at 5:41pm
Print Post  
Hi,

I just looked at Teensy and it does not have a 168Mhz speed option. 96Mhz is the fastest option that I see and it is the first default option.

Did you add the 168Mhz speed to boards.txt yourself? If not then which version of Teensy software are you using?

Thanks
« Last Edit: Jun 7th, 2016 at 5:42pm by Tim@Visual Micro »  
Back to top
IP Logged
 
amra
Newbies
*
Offline


Posts: 5
Joined: Jun 7th, 2016
Re: 6 june update produce weird code with Teensy
Reply #5 - Jun 7th, 2016 at 9:59pm
Print Post  
Hello,
the optional speeds are commented in boards file, just uncomment all extra speed.
Normally it's safe speed around 120Mhz and even 144Mhz for some applications is safe, but at 168 I alway have troubles.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint