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 Board Type definition persistence (Read 4674 times)
Greyble
Newbies
*
Offline


Posts: 2
Joined: Nov 4th, 2011
Board Type definition persistence
Jul 20th, 2012 at 10:32am
Print Post  
I'm developing some code that uses timer registers directly, ie TCCR1A, TCNT1 etc.
These values are dependant upon the controller and hence the board type. 
Currently these are not known - so using the IDE IDE F12 ('Go to Definition') pops up all the avr\iomxxx.h files as  options.
It would be nice if this went directly to the correct file based upon the currently selected board type.

BTW
It is possible to get round this by including (in the header for the timer code)
#define __AVR_ATmega328P__
which is taken from the .project.vsarduino.h file. In this file the value is automatically updated when the board is changed, but the file cannot be 'reused' in any header as this it is used to include the project ino file.

What would be ideal would be to add this definiton to 
Project configuration properties, C/C++, Preprocessor, Preprocessor Definitions
and keep it synched to the value from the board selector.



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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board Type definition persistence
Reply #1 - Jul 20th, 2012 at 11:53am
Print Post  
which version of vm are you running? the preproc defs are supposed to be set, certainly by recent versions
  
Back to top
WWW  
IP Logged
 
Greyble
Newbies
*
Offline


Posts: 2
Joined: Nov 4th, 2011
Re: Board Type definition persistence
Reply #2 - Jul 24th, 2012 at 10:07pm
Print Post  
Thanks.
I'll check my version (just tried but can't find it straight away) and plan to do an update.
The latest version I have was installed in February.

I'll let you know if the update fixes the problem.

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board Type definition persistence
Reply #3 - Jul 24th, 2012 at 10:51pm
Print Post  
I think the latest version gets this right.

By the way, the vm version is under "Tools>Options>Visual Micro>Version" but codeplex shows the date of the latest version which is much more recent than Feb Smiley

If you sign up to codeplex and follow the project you will be notified of new updates

Hope to hear from you that the F12 is working correctly for avr stuff.

Thanks
« Last Edit: Jul 24th, 2012 at 10:52pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint