Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Serial not declared in this scope (Attiny85 project) (Read 224 times)
bivalvo
Newbies
*
Offline



Posts: 5
Serial not declared in this scope (Attiny85 project)
Sep 9th, 2019 at 1:33pm
 
Hello everybody!

I'm new in this community, so first of all, I have to say that I'm very happy of being part of this. Hello!

And now, my question: I've created a IDE project with target: Attiny85. When I try to build, the log shows me an error 'Serial not declared in this scope', which is logic, because Attiny85 has not a HW Serial Port. The main problem is that 'Serial' is not appearing anywhere on my code. In fact, the error is pointing to a code line which is completely empty... So I guess that Serial library is included in my project by default. The problem is that I don't know exactly where is the interface to exclude libraries from my project... It's kinda hidden menu for me right now...

Can anybody help me? I would be grateful. Smiley

PS: Excuse my english, it's not my mother language.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10623
United Kingdom
Re: Serial not declared in this scope (Attiny85 project)
Reply #1 - Sep 9th, 2019 at 1:47pm
 
You can not use serial debug mode with the tiny. Please change the configuration name on the tool bar from Debug to Release.

If the problem continues please set vMicro>Debugger>Off. If it is already set to Off then select Off again.
Back to top
 
WWW  
IP Logged
 
bivalvo
Newbies
*
Offline



Posts: 5
Re: Serial not declared in this scope (Attiny85 project)
Reply #2 - Sep 9th, 2019 at 8:15pm
 
OK thank you. It worked for me!

So it's not possible to debug with breakpoints even if I'm on Release mode, right?

Thank you!
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10623
United Kingdom
Re: Serial not declared in this scope (Attiny85 project)
Reply #3 - Sep 10th, 2019 at 12:30pm
 
You need to use Debug for debugging.

The visual micro usb debugger uses Serial by default but you can override that to use the Transport=SoftwareSerial. Your mcu has little memory so that might not be a solution.

Alternatively you can use hardware debugging in atmel studio but you need to buy the appropriate hardware debugger.

Back to top
« Last Edit: Sep 10th, 2019 at 12:30pm by Visual Micro »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print