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 VS has lost it's mind! (Read 5874 times)
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
VS has lost it's mind!
Feb 11th, 2013 at 8:34pm
Print Post  
I have a little project/solution I've been working on for Timer0 using VM/VS2012.� All has been well for several weeks.� I may have broken VS:� I tried to re-name a Solution/Project (just wanted to go to Timer1) and have got it to run - but now many major defs like cli() and TCCR0A are being marked a undefined symbols.

Any hints on how I may have broken things?� � Undecided

=Alan R.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS has lost it's mind!
Reply #1 - Feb 11th, 2013 at 10:01pm
Print Post  
It's easily fixed, what's happened is that the plugin will not manage a project unless it is an arduino project. 

The rules for an Arduino project are that the folder and mainsketch.ino must have the same name, an additional rule for vs is that the project must also have the same name. 

If you change the name of the [sketchname].ino but not the folder then your sketch will not compile in either the arduino ide or vs.


+ Because we make use of standard vs c++ projects the plugin has to ensure that is does not attempt to tamper with normal vs c++ projects, for this reason it follows these rules.

Normally, the easiest way to rename a sketch is to rename the [sketchname].ino using the visual studio solution explorer. VM should detect this and rename the folder and vs project for you.

Now that you have a broken sketch you should close VS, open windows explorer and rename the folder that contains the sketch to the same name as the main [sketchname].ino, then delete the visual studio files in the sketch folder. The vs files have an extension that starts with ".vc". Re-start vs and open the [sketchname].ino using any of the available methods such as "File>Open Arduino Sketch"


If the project, sketch and folder names all match and you still have issues then switch to another board and then back again to force an intellisense refresh
« Last Edit: Feb 11th, 2013 at 10:07pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: VS has lost it's mind!
Reply #2 - Feb 12th, 2013 at 4:04am
Print Post  
Thanks for the help!� By the way - I did check to be notified of replies but nothing ever came in.� 

Still having a pi##er of a time starting a new VS/VM project. Intellisense is still confused...� �Is there a tutorial on starting a new arduino sketch and having it become a Solution/Project/VM-safe(!)???� Thought I had that down (am aware of all the naming conventions) but still having a prob starting fresh - or just copy-paste code from one .ino to a new one - somehow 'the sytem knows!.� Throwing in the towel for tonight, but will be back fresh in the AM...� Cheesy

=Alan R.
  
Back to top
 
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: VS has lost it's mind!
Reply #3 - Feb 12th, 2013 at 5:15am
Print Post  
Allan
Try the wiki on the VM site here : http://visualmicro.com/archive.aspx There are heaps of good information that will help you understand.
  
Back to top
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: VS has lost it's mind!
Reply #4 - Feb 12th, 2013 at 12:55pm
Print Post  
More woes!� �It seems I've broken something seriously. I've copied all the code from one sketch, started a 'New Arduino Project'.� I've renamed the solution so all names match. Yet when I hit F5, I get the series of errors pasted in below. Any hints as to where I'm stepping on my weenie?� � Undecided

-A.

Compiling 'NoPS-T0' for 'Arduino Uno'
core.a(main.cpp.o)* : : In function `main':
main.cpp : undefined reference to `setup'
main.cpp : undefined reference to `loop'
avr-objcopy* : : 'H:\Users\AVR\AppData\Local\VMicro\Arduino\Builds\NoPS-T0\uno\NoPS-T0.elf': No such file
avr-objcopy* : : 'H:\Users\AVR\AppData\Local\VMicro\Arduino\Builds\NoPS-T0\uno\NoPS-T0.elf': No such file
Couldn't determine program size: 
  
Back to top
 
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: BIG RED FACE! (Was:VS has lost it's mind!)
Reply #5 - Feb 12th, 2013 at 1:43pm
Print Post  
By running the errant sketch in Arduino IDE I discovered a missing '{'� that was causing the (in my defense) rather misleading error message.� Now it working fine...� Guess I stepped on my weenie with an incomplete cut/past.

Sigh.� Shocked

=A.
Harrzack wrote on Feb 12th, 2013 at 12:55pm:
More woes!� �It seems I've broken something seriously. I've copied all the code from one sketch, started a 'New Arduino Project'.� I've renamed the solution so all names match. Yet when I hit F5, I get the series of errors pasted in below. Any hints as to where I'm stepping on my weenie?� � Undecided

-A.

Compiling 'NoPS-T0' for 'Arduino Uno'
core.a(main.cpp.o)* : : In function `main':
main.cpp : undefined reference to `setup'
main.cpp : undefined reference to `loop'
avr-objcopy* : : 'H:\Users\AVR\AppData\Local\VMicro\Arduino\Builds\NoPS-T0\uno\NoPS-T0.elf': No such file
avr-objcopy* : : 'H:\Users\AVR\AppData\Local\VMicro\Arduino\Builds\NoPS-T0\uno\NoPS-T0.elf': No such file
Couldn't determine program size: 

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS has lost it's mind!
Reply #6 - Feb 12th, 2013 at 6:36pm
Print Post  
Yes the vm error messages do need some work. 

When the double click drill down on errors works it's useful but the messages are not great.

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