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) FIXED : NEW to VS and Debugger (Read 11380 times)
NikTheGreek
Newbies
*
Offline


Posts: 5
Joined: Feb 14th, 2013
FIXED : NEW to VS and Debugger
Feb 14th, 2013 at 10:48pm
Print Post  
I just installed the VS 2010 and the Debugger.
I cancompile and upload to my board successfully.
BUT..
when i change the "Micro Debug" option from NONE to FULL i'm taking the foollowing


[code]Compiling 'Blink' for 'Arduino Duemilanove w/ ATmega328'
Binary sketch size: 1026 bytes (of a 30720 byte maximum) (0,203125 secs)
Compiling debug version of 'Blink' for 'Arduino Duemilanove w/ ATmega328'
Blink.ino : In file included from
VM_DBG.h : No such file or directory
VM_DBG.cpp : In file included from
VM_DBG.h : No such file or directory
VM_DBG.cpp : In file included from
VM_DBG.h : 'uint8_t' does not name a type
VM_DBG.h : 'uint8_t' does not name a type
VM_DBG.h : 'byte' does not name a type
VM_DBG.h : 'uint8_t' does not name a type
VM_DBG.h : 'uint8_t' does not name a type
VM_DBG.h : ISO C++ forbids declaration of 'HardwareSerial' with no type
VM_DBG.h : expected ';' before '*' token
VM_DBG.h : 'HardwareSerial' has not been declared
VM_DBG.h : 'HardwareSerial' has not been declared
VM_DBG.h : 'byte' does not name a type

................... etc..........

VM_DBG.cpp : expected `;' before 'base'
VM_DBG.cpp : 'HEX' was not declared in this scope
VM_DBG.cpp : 'base' was not declared in this scope
VM_DBG.cpp

What im doing wrong. Embarrassed

Thank you in advance
« Last Edit: Feb 15th, 2013 at 1:58pm by NikTheGreek »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NEW to VS and Debugger
Reply #1 - Feb 14th, 2013 at 11:49pm
Print Post  
I'll have to give that a try it looks like vm is getting confused with the { on the same line as the setup() method. I'm sure that combination was tested but it might also be related to the comments immediately below the {.

Vm has to inject some code after the first open brace of setup and before any real code.

Please try changing the code so that the first open brace of setup { is on the next line. 

From this:-
Code
Select All
void setup() {
   //comment or code follows
 



To this:-

Code
Select All
void setup()
{
   //comment or code follows
 



  
Back to top
WWW  
IP Logged
 
Dan Hosking
Newbies
*
Offline


Posts: 1
Joined: Feb 14th, 2013
Re: NEW to VS and Debugger
Reply #2 - Feb 15th, 2013 at 6:13am
Print Post  
So am I and I'm not getting very far.  I've got VS Professional 2012 installed and I've installed VM 1212.30 and VM Debug Tools and Visualizations.  I can open a sketch but I get this error: 

"OpenProject: Unable to ensure project sketch files: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"

And the Boards pull-down menu is blank. Also all the key words like pinmode and delay have squiggly red lines under them so I suppose there's a library or a header file with definitions that's not being read.
OS is Windows7
Help!

Thanks,
Dan
  
Back to top
 
IP Logged
 
NikTheGreek
Newbies
*
Offline


Posts: 5
Joined: Feb 14th, 2013
Re: NEW to VS and Debugger
Reply #3 - Feb 15th, 2013 at 6:30am
Print Post  
Quote:
Please try changing the code so that the first open brace of setup { is on the next line.

From this:-
Code:

void setup() {
   //comment or code follows
 



To this:-

Code:

void setup()
{
   //comment or code follows
 



Thank you Tim..but im getting the same errors  Cry
« Last Edit: Feb 15th, 2013 at 6:31am by NikTheGreek »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NEW to VS and Debugger
Reply #4 - Feb 15th, 2013 at 11:47am
Print Post  
Which version of arduino do you have installed?

Did you install the correct debugger? There are two debuggers on the download page, you need the first one unless you have the alpha plugin installed which I doubt
« Last Edit: Feb 15th, 2013 at 12:36pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
NikTheGreek
Newbies
*
Offline


Posts: 5
Joined: Feb 14th, 2013
Re: NEW to VS and Debugger
Reply #5 - Feb 15th, 2013 at 12:00pm
Print Post  
1.0
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NEW to VS and Debugger
Reply #6 - Feb 15th, 2013 at 12:36pm
Print Post  
Nick, install 1.0.3, it's the same as 1.0 but with a few fixes.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NEW to VS and Debugger
Reply #7 - Feb 15th, 2013 at 12:37pm
Print Post  
This Topic was moved here from Installation & Troubleshooting [move by] Visual Micro.
  
Back to top
WWW  
IP Logged
 
NikTheGreek
Newbies
*
Offline


Posts: 5
Joined: Feb 14th, 2013
Re: NEW to VS and Debugger
Reply #8 - Feb 15th, 2013 at 1:05pm
Print Post  
1.0.3 Installed.

In VS changed ONLY TOOLS>OPTIONS>VisualMicro General from Arduino 1.0 to Arduino 1.03
I can compile-upload to board with success.
I can't debug Cry

Code
Select All
Compiling 'Blink' for 'Arduino Duemilanove w/ ATmega328'
Binary sketch size: 1034 bytes (of a 30720 byte maximum) (0,125 secs)
Compiling debug version of 'Blink' for 'Arduino Duemilanove w/ ATmega328'
Blink.ino : In file included from
VM_DBG.h : No such file or directory
VM_DBG.cpp : In file included from
VM_DBG.h : No such file or directory
VM_DBG.cpp : In file included from
VM_DBG.h : 'uint8_t' does not name a type
VM_DBG.h : 'uint8_t' does not name a type 

  
Back to top
 
IP Logged
 
NikTheGreek
Newbies
*
Offline


Posts: 5
Joined: Feb 14th, 2013
Re: NEW to VS and Debugger
Reply #9 - Feb 15th, 2013 at 1:56pm
Print Post  
FIXED !!!

Uninstalled both
Arduino for Vs and Debugger
and installed again.  Cool

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: FIXED : NEW to VS and Debugger
Reply #10 - Feb 15th, 2013 at 3:34pm
Print Post  
Great I think you had the 3.4 debugger installed. The next release of vm combines plugin and debugger into a single install so it will be easier.

Thanks for the feedback
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint