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 WProgram.h: No such file or directory (Read 7486 times)
tarpman
Newbies
*
Offline


Posts: 2
Location: Canada
Joined: Feb 3rd, 2014
WProgram.h: No such file or directory
Feb 3rd, 2014 at 8:25pm
Print Post  
Help!

I installed Mirco Debug trail on Atmel Studio 6.1 (Version 6.1.2730 - Service Pack2) but cannot get it to work.  When I try to run a sketch with debug enable I get the following errors. (Sketch works when Debugger is NOT enabled)

Is there something I missed or need to change to enable the debugger?

Compiling 'Blink' for 'Arduino Diecimila or Duemilanove w/ ATmega168'
Binary sketch size: 1026 bytes (used 7% of a 14336 byte maximum) (0.39 secs)
Compiling debug version of 'Blink' for 'Arduino Diecimila or Duemilanove w/ ATmega168'
Blink.ino:In file included from
VM_DBG.h:108:24: error: WProgram.h: No such file or directory
...


The error refers to the following code in VM_DBG.h

#if defined(ARDUINO) && (ARDUINO >= 100)
  //#include "variant.h"
  #include "Arduino.h"
#else
  #include "WProgram.h"
#endif

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WProgram.h: No such file or directory
Reply #1 - Feb 3rd, 2014 at 8:35pm
Print Post  
Hi,

Sorry to hear of this problem. 

This means that Visual Micro believes the Arduino Ide version is lower than a version 1.0 however there has always been a problem with the first ever version of the Arduino 1.0 Ide, we didn't fix it because Arduino soon replaced it with a much less buggy Arduino 1.0.1

Can you please confirm what version of the Arduino Ide you have installed?

Please also switch on "Tools>options>visual micro>compiler>verbose" then compile and post a few lines of the output where we expect to see the version that Visual Micro deduces after -DARDUINO=n

Thanks
  
Back to top
IP Logged
 
tarpman
Newbies
*
Offline


Posts: 2
Location: Canada
Joined: Feb 3rd, 2014
Re: WProgram.h: No such file or directory
Reply #2 - Feb 3rd, 2014 at 10:30pm
Print Post  
Thank you very much for the quick response. I'm really looking forward to trying out the debugger and you solved the problem for me.

I have two versions of the Arduino IDE installed. The orginal 1.0 version and the latest 1.0.5-r2. My ATmel Studio - IDE Location was pointing at the OLD version. 

My difficulty ending when I pointed Atmel Studio - IDE Location at the new version!

Thank you again for your help. I look forward to using the debugger.

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