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 tone command not working (Read 4653 times)
Janek1024
Newbies
*
Offline


Posts: 4
Joined: Jan 13th, 2017
tone command not working
Jan 13th, 2017 at 10:03am
Print Post  
I have the Arduino Nano / 328 clone. Each tone command produces only a single click instead of playing a tone.

Using the official Arduino IDE and the same code everything works OK.

Has anyone the idea what might be the problem?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: tone command not working
Reply #1 - Jan 13th, 2017 at 12:01pm
Print Post  
Hi

Visual micro compiles the same code so it should be the same.

two things to check

1) Switch off debug, Change toolbar from Debug to Release to make clear comparison with arduino

2) Make sure you have selected the nano 328 and not 168

Which IDE versions?
  
Back to top
IP Logged
 
Janek1024
Newbies
*
Offline


Posts: 4
Joined: Jan 13th, 2017
Re: tone command not working
Reply #2 - Jan 13th, 2017 at 8:07pm
Print Post  
Yes, it is the Release build in toolbar. Arduino nano/w 328 selected.

Same behaviour on two different computers with two different boards (same series though)

Versions:

Microsoft Visual Studio Enterprise 2015
  • Version 14.0.25123.00 Update 2
  • Microsoft .NET Framework
  • Version 4.6.01586
  • Installed Version: Enterprise
  • Visual C++ 2015   00322-90050-01228-AA669 Microsoft Visual C++ 2015
  • Arduino for Visual Studio   1.0


Arduino IDE 1.6.12
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: tone command not working
Reply #3 - Jan 13th, 2017 at 9:09pm
Print Post  
There must be some confusion somewhere for something so simple to be different to the arduino ide

Please switch on vMicro>Compiler>Verbose and also the "show build properties" option on the same menu

Then build and email the output to info[at]visualmicro.com along with a zip of your failing code project

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: tone command not working
Reply #4 - Jan 16th, 2017 at 6:46pm
Print Post  
How did you get on with this? Can you send the verbose output so we can see what's being compiled or did you find a solution in your code?

Thanks
  
Back to top
IP Logged
 
Janek1024
Newbies
*
Offline


Posts: 4
Joined: Jan 13th, 2017
Re: tone command not working
Reply #5 - Jan 19th, 2017 at 11:31am
Print Post  
I apologize for the delay - I have the Arduinos in my teacher's office and I am teaching only at thursdays and Fridays.

I cannot reproduce the error today. However, last week i had three different boards (two NANOs, one UNO) and two computers with the same buggy behaviour. Since that time my VS plugin has been updated twice, so maybe the error was finex in one of those updates.

Thank you for your help
  
Back to top
 
IP Logged
 
Janek1024
Newbies
*
Offline


Posts: 4
Joined: Jan 13th, 2017
Re: tone command not working
Reply #6 - Jan 19th, 2017 at 11:32am
Print Post  
I apologize for the delay - I have the Arduinos in my teacher's office and I am teaching only Wed-Fri.

I cannot reproduce the error today. However, last week i had three different boards (two NANOs, one UNO) and two computers with the same buggy behaviour. Since that time my VS plugin has been updated twice, so maybe the error was fixed in one of those updates.

Thank you for your help
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: tone command not working
Reply #7 - Jan 19th, 2017 at 11:56am
Print Post  
Thanks. No nothing has changed in that area and a serious issue lime that would have cause many reports 😁
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint