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 Libelium Development... any advice? (Read 3645 times)
Seb Pinski
Newbies
*
Offline


Posts: 2
Joined: Sep 29th, 2016
Libelium Development... any advice?
Sep 29th, 2016 at 2:38pm
Print Post  
Dear all,

I'm new to the forum and arduino development and in need of some advice. Just assessing the suitability of Visual Micro with the intention to buy so long as we can get Libelium development working.

I've seen two existing threads that appear to have some good discussion and suggestion of both development and upload working using Visual Micro, but both threads are very vague on detail:

-http://www.visualmicro.com/forums/YaBB.pl?num=1375389858
-http://www.visualmicro.com/forums/YaBB.pl?num=1383574698 ;

I'm using VS 2015 Professional, downloaded Visual Micro 1603.20 and have the latest Libelium 'waspmote-pro-ide-v04-windows' IDE unzipped to <ide-directory>. With the sketchbook set as '<ide-directory>\sketches'. I've assumed that for the Waspmote PRO v1.2 I should setup the environment config with Arduino 1.0 and used the IDE and Sketchbook paths mentioned above. I've assumed this as the boards actually becomes populated with the field "waspmote-API-v023".

I have created a test project using the "New Arduino Project" and named it 'Libelium', so I have the base ino file at '<ide-directory>\sketches\Libelium\Libelium.ino'.

This is where I've become stuck. My observations are as follows:

- A header file appears named '.Libelium.vsarduino.h', I've opened this and see that the line '#include <wprogram.h>' seems to be considered an error.
- When building, I get the error 'VM_DBG.h: 36:21: fatal error: Arduino.h: No such file or directory compilation terminated'

I created Arduino.h with the contents: "#include "Waspmote.h". This now gives me the error:

Error compiling libraries
   error: This hardware might not support the default Serial debugger.
     Try switching the toolbar from 'Debug/Local windows debugger' to 'Release' and build again. 
           or switch off Automatic Debugging
           or configure the SoftwareSerial debugger option.

Any help would be greatly appreciated.

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Libelium Development... any advice?
Reply #1 - Sep 29th, 2016 at 2:45pm
Print Post  
Hi,

Switch the tool bar from Debug to Release so that you take debugging out of the equation

I would also not use <ide-directory>\sketches\ for sketchbook it might cause confusion. Normally sketchbook is off mydocuments\some_folder

The .vsarduino.h should be considered read-only and as the note inside it says "it is only used for intellisense and not for compile"

If adding an arduino.h will work then add it to wherever the wprogram.h is which will probably be somewhere below the ide\hardware folder. Don't forget to #include the wprogram.h or whatever header the core expects

« Last Edit: Sep 29th, 2016 at 2:50pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Seb Pinski
Newbies
*
Offline


Posts: 2
Joined: Sep 29th, 2016
Re: Libelium Development... any advice?
Reply #2 - Sep 30th, 2016 at 7:26am
Print Post  
Thanks for the advice. I've managed to build in release and have moved my sketchbook directory. I will also not edit the .vsarduino.h (though I must ask why the header in this file has changed from 'wprogram.h' to 'arduino.h'?

So after editing the applications.txt in the visualmicro install folder, I've read that you can provide your own applications.txt. Could you please advise where this should be placed? Is there a better way of overwriting the need for either "Arduino.h" or "wprogram.h", so that we can just reference "Waspmote.h"?

Thanks in advance.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Libelium Development... any advice?
Reply #3 - Oct 2nd, 2016 at 2:39pm
Print Post  
Hi,

I don't think you need to alter applications.txt

You can simply put a wprogram.h or arduino.h in the same location as the waspmote.h. The wprogram or arduino.h only need to contain #include "waspmote.h"
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint