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
Hot Topic (More than 8 Replies) Another Serial "Undefined" Error (SOLVED - USER ERROR) (Read 4838 times)
Memhave1
Newbies
*
Offline


Posts: 9
Joined: Mar 10th, 2017
Another Serial "Undefined" Error (SOLVED - USER ERROR)
Mar 30th, 2017 at 10:43am
Print Post  
I read the topic:
http://www.visualmicro.com/forums/YaBB.pl?num=1443820744
I think I followed all the steps, I still get serial is undefined.
IDE: VS2015.
Board:Mega2560 Rev 3.
OS: Win7 32bit.

I was attempting to make a serial driving using C (not Arduino language), and I was receiving these errors.

I can create Win32 c++ applications, switching boards did not work - neither opening and closing visual studio (after saving).
« Last Edit: Mar 30th, 2017 at 11:37am by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Another Serial "Undefined" Error
Reply #1 - Mar 30th, 2017 at 10:55am
Print Post  
Which arduino ide version?
  
Back to top
WWW  
IP Logged
 
Memhave1
Newbies
*
Offline


Posts: 9
Joined: Mar 10th, 2017
Re: Another Serial "Undefined" Error
Reply #2 - Mar 30th, 2017 at 11:11am
Print Post  
Tim@Visual Micro wrote on Mar 30th, 2017 at 10:55am:
Which arduino ide version?

Visual Studio 2015?
Edit: Not using Arduino IDE, its not great.
« Last Edit: Mar 30th, 2017 at 11:13am by Memhave1 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Another Serial "Undefined" Error
Reply #3 - Mar 30th, 2017 at 11:15am
Print Post  
Yu have pointed visual micro to an arduino ide. which one have you installed?
  
Back to top
WWW  
IP Logged
 
Memhave1
Newbies
*
Offline


Posts: 9
Joined: Mar 10th, 2017
Re: Another Serial "Undefined" Error
Reply #4 - Mar 30th, 2017 at 11:22am
Print Post  
My apologies, I have installed Arduino IDE 1.8.1
  
Back to top
 
IP Logged
 
Memhave1
Newbies
*
Offline


Posts: 9
Joined: Mar 10th, 2017
Re: Another Serial "Undefined" Error
Reply #5 - Mar 30th, 2017 at 11:34am
Print Post  
I recreated the project with an INO file (as opposed to a C file), it finds HardwareSerial class fine.  Huh
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Another Serial "Undefined" Error
Reply #6 - Mar 30th, 2017 at 11:37am
Print Post  
Oh okay I missed the fact you were using a .c file. Yes you need to know what you are doing to use c++ from c  Smiley
  
Back to top
WWW  
IP Logged
 
Memhave1
Newbies
*
Offline


Posts: 9
Joined: Mar 10th, 2017
Re: Another Serial "Undefined" Error
Reply #7 - Mar 30th, 2017 at 11:40am
Print Post  
Tim@Visual Micro wrote on Mar 30th, 2017 at 11:37am:
Oh okay I missed the fact you were using a .c file. Yes you need to know what you are doing to use c++ from c  Smiley


Ah what a shame, I thought it was pretty much the same.
Do you know of any guides for this specific instances (Arduino C Serial communication) or what imports I need to use.

Thanks anyway. Grin
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Another Serial "Undefined" Error (SOLVED - USER ERROR)
Reply #8 - Mar 30th, 2017 at 11:48am
Print Post  
No, I don't bother with c. All code questions are best asked in the arduino.cc forum.
  
Back to top
WWW  
IP Logged
 
Memhave1
Newbies
*
Offline


Posts: 9
Joined: Mar 10th, 2017
Re: Another Serial "Undefined" Error (SOLVED - USER ERROR)
Reply #9 - Mar 30th, 2017 at 12:27pm
Print Post  
Well, I appreciate the help anyway!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint