Hi Tim,
it's finally working! I can now compile and upload to Waspmote from Visual Studio. For documentation reasons I just installed a fresh (untouched) version of Waspmote Pro IDE and wrote down all changes I made:
Versions:
- Microsoft Visual Studio Ultimate 2010 Version 10.0.40219.1 SP1Rel
or Microsoft Visual Studio Ultimate 2012 Version 11.0.60.315.01 Update 2
or Atmel Studio 6.1.2674 Service Pack 1
- Libelium Waspmote Pro IDE Version 03 // API Version 003
- Visual Micro Arduino Ide for Visual Studio and Atmel Studio 1.1305.09
Changes:
- Made a copy of {waspmote_ide}\waspmote.exe in the same directory and named it arduino.exe
- Created Arduino.h in {waspmote_ide}\hardware\waspmote\cores\waspmote-api\ with the following content:
#include "Waspmote.h"
- Modified "wasp1.upload.protocol=stk500" to "wasp1.upload.protocol=stk500v1" in {waspmote_ide}\hardware\waspmote\boards.txt
- Added the following lines to {waspmote_ide}\hardware\waspmote\boards.txt:
wasp1.upload.tool=avrdude
wasp1.tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} -F -p{build.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} -D -V "-Uflash:w:{build.path}/{build.project_name}.hex:i"
These changes make it possible to use "Waspmote Pro IDE" work with "Visual Micro Arduino Ide for Visual Studio and Atmel Studio" but some issues are remaining:
- after a successful upload the plugin will output the message: "Wrong microcontroller found. Did you select the right board from the Tools > Board menu?"
- even when using "-v -v -v -v " no avrdude output will show up
Greets, Michael