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 serial.available() fails (Read 2304 times)
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
serial.available() fails
May 1st, 2015 at 9:57pm
Print Post  
help .. . I own your product.

the call serial.available()  never detects the presence of an incoming character that I type in the VM Serial Monitor window.  why not?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: serial.available() fails
Reply #1 - May 1st, 2015 at 11:07pm
Print Post  
Hi GeeTee,

Thanks for buying the upgrade of Visual Micro. The forum and support is free for people who have purchased the upgrade and free users of the standard product. Support is provided on a best endeavors basis because the product is mainly free or at a cost that simply helps to fund a small part of the production costs.

Questions

1)
Is Serial.print() working? If not then the speeds are wrong, what speed is the code using.

2)
If Serial.print() works then we can assume the speed is correct so maybe the debugger is ON (and sharing the usb port). Switch the tool bar configuration combo box from "Debug" to "Release" (or "untick tools>visual micro>automatic debugging") and try the upload again.

Thanks

notes

If the usb port is needed for operation then the debugger can use a different serial port or software serial

When the debugger is on, it attempts to discover what speed your serial is working at. if it can't it defaults to 115200 unless you alter the MicroDebug>LocalSpeed project property. The speed it determines is shown in the serial monitor status bar.

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