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) Problems with Waspmote ... again (Read 12443 times)
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Problems with Waspmote ... again
Nov 4th, 2013 at 2:18pm
Print Post  
Hi there,

today I updated my Visual Micro Plugin and now I'm not able to compile anymore. My configuration is set up according to http://www.visualmicro.com/forums/YaBB.pl?num=1375389858/0 but I only get the message:
Code
Select All
Compiling 'Projectname' for 'waspmote-api'
Projectname.pde : No such file or directory
Error compiling
 



Here is what I added to applications.txt:
Code
Select All
waspmote.name=Waspmote API 003
waspmote.ide.hint=Waspmote IDE 03 API 003
waspmote.ide.location.key=Waspmote003
waspmote.ide.location.ide.winreg=Waspmote 003 Application
waspmote.ide.location.sketchbook.winreg=Waspmote Sketchbook
waspmote.ide.location.sketchbook.preferences=sketchbook.path
waspmote.ide.location.sketchbook.default=%MYDOCUMENTS%\waspmote
waspmote.ide.location.preferences=%VM_APPDATA_ROAMING%\waspmote\preferences.txt
waspmote.ide.default.package=waspmote003
waspmote.ide.default.platform=avr
waspmote.ide.multiplatform=true
waspmote.ide.includes=waspmote.h
waspmote.ide.platformswithoutpackage=true
waspmote.ide.sketchfolder.platforms.exclude=avr
waspmote.ide.includes.fallback=wprogram.h
waspmote.ide.extension=ino
waspmote.ide.extension.fallback=pde
waspmote.ide.versionLTEQ=149
waspmote.ide.exe=waspmote.exe
waspmote.ide.hosts=atmel
waspmote.ide.url=http://www.libelium.com/development/waspmote/sdk_applications/
waspmote.vm.debug=true
waspmote.software=ARDUINO


waspmote004.name=Waspmote API 004
waspmote004.ide.hint=Waspmote IDE 03 patched with API 004
waspmote004.ide.location.key=Waspmote004
waspmote004.ide.location.ide.winreg=Waspmote 004 Application
waspmote004.ide.location.sketchbook.winreg=Waspmote Sketchbook
waspmote004.ide.location.sketchbook.preferences=sketchbook.path
waspmote004.ide.location.sketchbook.default=%MYDOCUMENTS%\waspmote
xt
waspmote004.ide.default.package=waspmote004
waspmote004.ide.default.platform=avr
waspmote004.ide.multiplatform=true
waspmote004.ide.includes=waspmote.h
waspmote004.ide.platformswithoutpackage=true
waspmote004.ide.sketchfolder.platforms.exclude=avr
waspmote004.ide.includes.fallback=wprogram.h
waspmote004.ide.extension=ino
waspmote004.ide.extension.fallback=pde
waspmote004.ide.versionLTEQ=149
waspmote004.ide.exe=waspmote.exe
waspmote004.ide.hosts=atmel
waspmote004.ide.url=http://www.libelium.com/development/waspmote/sdk_applications/
waspmote004.vm.debug=true
waspmote004.software=ARDUINO
 



Please tell me if you have any idea why it's not working anymore...

Greets, Michael

BTW: I just use API 003...
« Last Edit: Nov 4th, 2013 at 2:23pm by l1f3@dd.ict »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with Waspmote ... again
Reply #1 - Nov 4th, 2013 at 3:19pm
Print Post  
Hi

Sorry you are having a problem. As state in your initial post (that you have linked) the manufacturer of the waspmote have said that they don't really want their users using other ide's. This means we can only try to help you and we should not be judged by any expected standard Smiley

Nothing in the last release changed as far as the compiler is concerned. It looks like a library or #include might be missing. Can you try compiling using waspmote does it work?

We are on reduced support during November for 1 off unique reasons. I will try to replicate your install by downloading waspmote but it might take a couple of weeks if I encounter any delay at all.

In the meantime please switch on Tools>options>Visual Micro>Compiler>verbose and run the compile again then email the output to info[at]visualmicro.com

Also check that your waspmote path is correct in the Visual Micro config
« Last Edit: Feb 21st, 2016 at 2:58pm by Tim@Visual Micro »  
Back to top
IP Logged
 
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Problems with Waspmote ... again
Reply #2 - Nov 4th, 2013 at 7:44pm
Print Post  
Hi,

I just mailed you the output. It seems that the plugin is looking for Projectname.pde in the build folder but there is only Projectname.cpp (same content).

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with Waspmote ... again
Reply #3 - Nov 5th, 2013 at 5:24pm
Print Post  
Hi,

It isn't possible to compile .pde or .ino files directly. They are always combined into a single .cpp in the temp build folder so it is correct you see sketch.pde and sketch.cpp in the build process.

The output seems to indicate that some project sources or library sources are missing. Can you please confirm that you are able to perform this build using the waspmote ide.

This is what is in your build output, not the best error msg in the world but certainly the problem of a missing file or reference.

Code
Select All
IAs??.pde : No such file or directory
WaspClasses.h : In file included from
Waspmote.h : from
IAr??.h : from
IAsam.pde : from
 



You need to try the waspmote ide that you have installed into :- C:\IA\Projects\G????a_I????\IDE\waspmote-pro-ide-v03-windows_GD003\

When you open the waspmote ide you should also confirm that File>Preferences>Sketchbook is the same as you have configured for Visual Micro: - C:\IA\Projects

When you upgraded your Visual Micro did you also upgrade waspmote?

Please also switch on verbose in the waspmote ide and make the same compile then send the output. Aside from this error I would like to compare the output. There are a lot of compiler warnings that I can see in your output. It would be useful to compare the two so that I can give config tips (if possible)

Thanks

edit: some data blocked because of user request (???)
« Last Edit: Nov 5th, 2013 at 9:33pm by Tim@Visual Micro »  
Back to top
IP Logged
 
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Problems with Waspmote ... again
Reply #4 - Nov 5th, 2013 at 7:08pm
Print Post  
Hi there,

I did the following now:
- Took another computer with a fresh installation of Visual Studio 2010
- Downloaded an unpacked an unmodified version of Waspmote IDE (WI) to "C:\WaspVS\waspmote-pro-ide-v03-windows"
- Downloaded and installed a fresh copy of Visual Micro Plugin (VMP) 1.1309.11
- Configured WI to use "C:\WaspVS\Code" as sketchbook path
- Configured VMP to use "C:\WaspVS\waspmote-pro-ide-v03-windows" as IDE path and "C:\WaspVS\Code" as sketchbook path for "Arduino 1.0.x"
- Changed two lines in "C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\applications.txt": 
Code
Select All
[...]
arduino10x.ide.includes=Waspmote.h
[...]
arduino10x.ide.exe=waspmote.exe
 


- Set up a new project named "empty" in WI and placed it in "C:\WaspVS\Code\empty"
- "C:\WaspVS\Code\empty\empty.pde" contains:
Code
Select All
void setup() { }
void loop() { }
 


- Tried to compile with WI -> successful
- Tried to compile with VS with VMP -> same problem as before

Here is the output of VS with VMP:
Code
Select All
Compiling 'empty' for 'waspmote-api-v004'
Build folder: file:///C:/Users/lifeaddict/AppData/Local/VMicro/Arduino/Builds/empty/wasp1
SketchLibFolders
ows\hardware\tools\avr\lib\gcc\avr\4.3.2\include\;
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines: VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\tools\avr\bin\
GCC: 4.3.2
Sketchbook: file:///C:/WaspVS/Code
C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega1281 -DF_CPU=14745600L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -I"C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\waspmote\cores\waspmote-api" -o "   -DVISUALMICRO_COMPILER_VER=1
empty.pde : No such file or directory
Error compiling
 



Any idea?

Greets, Michael

BTW: I'll send you to output of the successful compilation with WI by mail because it is too long for posting it here.
« Last Edit: Nov 5th, 2013 at 7:11pm by l1f3@dd.ict »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with Waspmote ... again
Reply #5 - Nov 5th, 2013 at 9:31pm
Print Post  
Hi there,

I am confused. In all cases the waspmote locations shown in the logs are different to what you say you have configured for VM.

Let's ignore the first report because you don't want the locations made public.

So I am looking at the WI log that arrived at 7:12, 4 mins after your previous post.

In that log the waspmote-ide is reported to be in
bin"

However, in your last post you clearly state that you have configured vm to find waspmote in "C:\WaspVS\waspmote-pro-ide-v03-windows" and that you also ran the WI program from "C:\WaspVS\waspmote-pro-ide-v03-windows"

I am sorry if I have missed something, but what appears to be happening is a confusuion over where WI is actually installed. This also makes sense for the error you are getting on the very first file that Vm attempts to compile. In your last post I think VM can not find the avr program used to compile which based on your stated config settings is "C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\tools\avr\bin\avr-g++"
  
Back to top
IP Logged
 
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Problems with Waspmote ... again
Reply #6 - Nov 5th, 2013 at 10:54pm
Print Post  
Sorry Tim, 

I mixed up with the output files I made before is I decided to make a new installation. I just mailed you the output file from the right location. But I get the same behavior no matter at which location the IDE is installed.

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with Waspmote ... again
Reply #7 - Nov 6th, 2013 at 12:05am
Print Post  
Please try clicking "Build>Clean Solution" then email the full verbose output from from VM. Thanks

I will do my best over the next couple of weeks to answer questions. Unfortunately you will read on the vm site and top of the forum that some exceptional circumstances mean we will only be able to provide reduced support over the next few weeks. This starts tomorrow so I am very sorry you will probably get caught by this. Don;t forget the external editor checkbox in waspmote allows sketches to be edited in vs and upload via waspmote ide.

Please use a batch file to understand what the problem might be. You can see the first compilation line in both the vm trace and WI trace should be identical apart from temp folder location. Vm is running the programs that come with WI and showing exactly what it doing so you have the capability to replicate the issue. The two commands are shown below.

It's also a good idea to look in the empty.cpp in the two temp folders to see any difference?

The order of the params in the lines below is not important. Not sure of setting the ARDUINO version to 3 will have any effect?

VM 1st trace line

Code
Select All
C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega1281 -DF_CPU=14745600L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -I"C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\waspmote\cores\waspmote-api" -o "  "C:\Users\lifeaddict\AppData\Local\VMicro\Arduino\Builds\empty\wasp1\empty.cpp" 



WI 1st line

Code
Select All
C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega1281 -DF_CPU=14745600L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=3 -IC:\WaspVS\waspmote-pro-ide-v03-windows\hardware\waspmote\cores\waspmote-api C:\Users\LIFEAD~1\AppData\Local\Temp\build2990528880036439504.tmp\empty.cpp -o C:\Users\LIFEAD~1\AppData\Local\Temp\build2990528880036439504.tmp\empty.cpp.o  

« Last Edit: Nov 6th, 2013 at 12:19am by Tim@Visual Micro »  
Back to top
IP Logged
 
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Problems with Waspmote ... again
Reply #8 - Nov 6th, 2013 at 12:43pm
Print Post  
Hi,

This is the full verbose output when building after cleaning the project:
Cleaning:
Code
Select All
Build Clean 'empty'
Deleted temporary build folder 'C:\Users\lifeaddict\AppData\Local\VMicro\Arduino\Builds\empty\wasp1'
Build Clean Complete
 


Building:
Code
Select All
Compiling 'empty' for 'waspmote-api-v004'
Build folder: file:///C:/Users/lifeaddict/AppData/Local/VMicro/Arduino/Builds/empty/wasp1
SketchLibFolders
ows\hardware\tools\avr\lib\gcc\avr\4.3.2\include\;
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines: VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\tools\avr\bin\
GCC: 4.3.2
Sketchbook: file:///C:/WaspVS/Code
C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega1281 -DF_CPU=14745600L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -I"C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\waspmote\cores\waspmote-api" -o "   -DVISUALMICRO_COMPILER_VER=1
empty.pde : No such file or directory
Error compiling
 



VM: 
Code
Select All
#include "wprogram.h"

//
//
void setup() { }

void loop() { }
 



I cleaned the WI project by deleting all build folders in temp - I also mailed you a copy of stdout & stderr (too long to post)
WI 
Code
Select All
#line 1 "empty.pde"
#include "Waspmote.h"
void setup();
void loop();
#line 1
void setup() { }

void loop() { }
 



Therefore I already tried to paste the first five lines into empty.pde - this make a empty.cpp that looks like:
Code
Select All
#line 1 "empty.pde"
#include "Waspmote.h"
#include "wprogram.h"

//
//
void setup();
void loop();
#line 1

void setup() { }

void loop() { }
 


and a little different build output (also cleaned before building):
Code
Select All
Compiling 'empty' for 'waspmote-api-v004'
Build folder: file:///C:/Users/lifeaddict/AppData/Local/VMicro/Arduino/Builds/empty/wasp1
SketchLibFolders
ows\hardware\tools\avr\lib\gcc\avr\4.3.2\include\;
Summary: Header=1 Prototypes=3 Imports=1
Additional Defines: VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\tools\avr\bin\
GCC: 4.3.2
Sketchbook: file:///C:/WaspVS/Code
C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega1281 -DF_CPU=14745600L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -I"C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\waspmote\cores\waspmote-api" -o "   -DVISUALMICRO_COMPILER_VER=1
WaspClasses.h : In file included from
Waspmote.h : from
empty.pde* : from
signal.h : #warning "This header file is obsolete.  Use <avr\interrupt.h>."
empty.pde* : No such file or directory
WaspAES.h : 'Seed' defined but not used
WaspAES.h : 'Magic' defined but not used
Error compiling
 

  
Back to top
 
IP Logged
 
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Problems with Waspmote ... again
Reply #9 - Nov 6th, 2013 at 1:47pm
Print Post  
Your hint to compare the empty.cpp files did it!

I couldn't explain the the #include "wprogram.h" comes from because I already replaced every occurrence of "wprogram.h" in "C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\applications.txt" with "Waspmote.h". So I placed a fake "wprogram.h" in "C:\WaspVS\waspmote-pro-ide-v03-windows\hardware\waspmote\cores\waspmote-api" with just one line:
Code
Select All
#include "Waspmote.h"
 


Build process now works again...
I still can't explain why VM does not pay any attention to applications.txt which explicitly names Waspmote.h.

Thanks for all your help,
Michael


« Last Edit: Nov 6th, 2013 at 1:48pm by l1f3@dd.ict »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with Waspmote ... again
Reply #10 - Nov 14th, 2013 at 10:50pm
Print Post  
Sorry for the delay, well done for sorting it. I will look into why the include override was being ignored.

I also thought you had created a new app entry for waspmote and left the default arduino 1x apps as they are. However if you are only using waspmote and not arduino it doesn't matter.

Over the next couple of weeks I will try to add a blog article showing how to add your own applications.txt outside of the std Visual Micro install location. The reason for this is that applications.txt is overwritten during upgrade which is why your customizations stopped working. I will post a link here when done.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint