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] 2  Send TopicPrint
Hot Topic (More than 8 Replies) Plugin for Libelium Waspmote (Read 30958 times)
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Plugin for Libelium Waspmote
Aug 1st, 2013 at 8:44pm
Print Post  
Hi there,

I' m working on a project where we first used Arduino (Mini Ultra 8MHz) but had to switch to Libelium Waspmote. Now we miss the comfort of the Visual Studio plugin and are looking for some way to use the plugin instead of the Waspmote Pro IDE. So our question is what would be neccessary to make that working?

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Plugin for Libelium Waspmote
Reply #1 - Aug 1st, 2013 at 9:58pm
Print Post  
Hi,

I am not sure how easy or even if possible. Libelium seem to have taken the open source ide then removed the flexible build process and hard coded it. Is it still open source? If so then it would save a lot investigation time if you wanted to do that.

If they have not removed the option called "File>Preferences>External Editor" then I could probably tell you how to get vs working for intellisense and code edit but using the waspmote for upload. Without that setting you would have to restart the waspmote ide every time you wanted to compile which wouldn't be much fun.
« Last Edit: Aug 1st, 2013 at 10:15pm 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: Plugin for Libelium Waspmote
Reply #2 - Aug 2nd, 2013 at 9:20am
Print Post  
Hi Tim,

the "External Editor" option is available and it works too but I would like to take the full advantage of your plugin. 

I just compared the contents of Arduino IDE 1.0.4 and Waspmote Pro IDE v.03 - there isn't much difference. So I tried to tell the plugin that the location of "Arduino 1.0.x" is the Waspmote IDE. That looked quite fin in the first place (could select waspmote-api as board) but I'm not able to compile (can't find RTC, USB and stuff).

After a restart of VS I'm not able to open a project - there is just the message "Visual Micro: Configuration - Cygwin:".
Can you give me any hint, where to start investigation?

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Plugin for Libelium Waspmote
Reply #3 - Aug 2nd, 2013 at 4:59pm
Print Post  
I've looked at this again and the problem is that there is no hardware definitions with waspmote. Normally you would expect a boards.txt under ide/hardware/.... This is what Vm needs to know which boards to display in the list.

If you set your Arduino 1.0 location back to 1.0.4 Vm should work correctly again.

We can create a boards.txt, it is a simply text file, this would get the intellisense working and possibly give you upload but at your own risk.

I asked Libelium some months ago why we can't use VS for upload. They were concerned that people will try to burn a new bootloader which would render their equipment useless. There are other ways to prevent this from happening and in any case you need special hardware to do that. However they seem to want to keep things close.
« Last Edit: Aug 2nd, 2013 at 5:01pm 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: Plugin for Libelium Waspmote
Reply #4 - Aug 5th, 2013 at 8:17am
Print Post  
Yes, if I change the path back to the Arduino IDE path everything works without any problems.

In Waspmote Pro IDE I have a boards.txt unter ide/hardware/waspmote/. I'm quite sure that your software found the boards.txt correctly because when I changed the path I could select "waspmote-api" from the drop-down menu. Be be sure I copied the boards.txt to ide/hardware/ but this makes no changes. 

If  I try to compile the sketch (without restarting VS) I get the following:
Code
Select All
Compiling 'myProject' for 'waspmote-api'
myProject.pde : No such file or directory
myProject.pde : : In function 'void setup()':
myProject.pde : 'USB' was not declared in this scope
myProject.pde : 'RTC' was not declared in this scope
myProject.pde : : In function 'void loop()':
myProject.pde : 'USB' was not declared in this scope
myProject.pde : 'RTC' was not declared in this scope
myProject.pde : 'RTC_ABSOLUTE' was not declared in this scope
myProject.pde : 'RTC_ALM1_MODE4' was not declared in this scope
myProject.pde : 'PWR' was not declared in this scope
myProject.pde : 'ALL_OFF' was not declared in this scope
myProject.pde : : In function 'boolean writeData()':
myProject.pde : 'SD' was not declared in this scope
myProject.pde : 'RTC' was not declared in this scope
myProject.pde : 'sprintf' was not declared in this scope
myProject.pde : 'USB' was not declared in this scope
myProject.pde : 'USB' was not declared in this scope
myProject.pde : 'USB' was not declared in this scope
myProject.pde : 'USB' was not declared in this scope
myProject.pde : 'USB' was not declared in this scope
myProject.pde : 'USB' was not declared in this scope
myProject.pde : 'PWR' was not declared in this scope
myProject.pde : : In function 'boolean sendData()':
myProject.pde : 'USB' was not declared in this scope
myProject.pde : 'F' was not declared in this scope
myProject.pde : 'DEC' was not declared in this scope
myProject.pde : 'DEC' was not declared in this scope
myProject.pde : 'DEC' was not declared in this scope
myProject.pde : 'F' was not declared in this scope
myProject.pde : 'F' was not declared in this scope
myProject.pde : : In function 'char* getIsoDate()':
myProject.pde : 'RTC' was not declared in this scope
myProject.pde : 'sprintf' was not declared in this scope
myProject.pde : 'USB' was not declared in this scope
myProject.pde : : In function 'char* getIsoTime()':
myProject.pde : 'RTC' was not declared in this scope
myProject.pde : 'sprintf' was not declared in this scope
myProject.pde : 'USB' was not declared in this scope
myProject.pde : : In function 'void readRTC()':
myProject.pde : 'RTC' was not declared in this scope
myProject.pde : 'RTC_DATE_ADDRESS_2' was not declared in this scope
Error compiling 



I assume that the plugin tries to use Arduino.h and not Waspmote.h.

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Plugin for Libelium Waspmote
Reply #5 - Aug 5th, 2013 at 12:32pm
Print Post  
Hi, I must have missed the boards.txt when I looked or maybe installed the wrong waspmote software. It's good news if we still have a boards.txt.

You can create an arduino.h in the waspmote core folder and simply add an #include "waspmote.h".

The next version of vm allows new apps to be defined along with the .h include and a bunch of other things we can use if required but hopefully adding an arduino.h is a quick fix for now

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


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Plugin for Libelium Waspmote
Reply #6 - Aug 6th, 2013 at 9:16am
Print Post  
Hi Tim,

I tried to compile using the fake Arduino.h - here is the result:

Code
Select All
Compiling 'myProject' for 'waspmote-api'
Binary sketch size: 60628 bytes (49% of a 122880 byte maximum) (15,88 secs)
Uploading to I/O board using 'COM19'
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.
/* here we have about 20k lines of warnings
 * about 50% is: "hidusagestr.h : Warning: only initialized variables can be placed into program memory area"
 */
Binary sketch size: 60628 bytes (49% of a 122880 byte maximum) (1094,13 secs)
Uploading to I/O board using 'COM19'
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check. 



Can you tell me where to set the device signature?

Greets, Michael

BTW: recognition of "USB", "RTC" and so on works fine now...
« Last Edit: Aug 6th, 2013 at 9:39am by l1f3@dd.ict »  
Back to top
 
IP Logged
 
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Plugin for Libelium Waspmote
Reply #7 - Aug 6th, 2013 at 9:39am
Print Post  
And a little bit more verbose:

Code
Select All
Binary sketch size: 60628 bytes (49% of a 122880 byte maximum) (5,79 secs)
Uploading to I/O board using 'COM19'
"C:\somepath\waspmote-pro-ide-v03-windows\hardware\tools\avr\bin/avrdude"  -v -v -v -v -patmega1281 -cstk500v1 -P\\.\COM19 -b115200 -D -V p1\myProject.hex":i
avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\somepath\waspmote-pro-ide-v03-windows\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM19
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 115200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
         AVR Part                      : ATMEGA1281
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    10     8    0 no       4096    8      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65    10   256    0 yes    131072  256    512  4500  4500 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack 

« Last Edit: Aug 6th, 2013 at 9:43am by l1f3@dd.ict »  
Back to top
 
IP Logged
 
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Plugin for Libelium Waspmote
Reply #8 - Aug 6th, 2013 at 9:42am
Print Post  
had to split it up because of 4000 character limit:

Code
Select All
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
avrdude: Send: A [41] . [80]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [02]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [81]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [01]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [82]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [0f]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [98]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
         Hardware Version: 2
         Firmware Version: 1.15
avrdude: Send: A [41] . [84]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [85]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [86]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [87]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [89]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: Send: A [41] . [81]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [01]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [82]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [0f]
avrdude: Recv: . [10]
avrdude: Send: B [42] . [00] . [00] . [00] . [01] . [01] . [01] . [01] . [03] . [00] . [00] . [00] . [00] . [01] . [00] . [10] . [00] . [00] . [02] . [00] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: Send: E [45] . [05] . [08] . [d7] . [a0] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: Send: P [50]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: AVR device initialized and ready to accept instructions

Reading | avrdude: Send: V [56] 0 [30] . [00] . [00] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: V [56] 0 [30] . [00] . [01] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
################avrdude: Send: V [56] 0 [30] . [00] . [02] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
################################## | 100% 0.05s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

avrdude: Send: Q [51]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]

avrdude done.  Thank you. 

« Last Edit: Aug 6th, 2013 at 9:44am by l1f3@dd.ict »  
Back to top
 
IP Logged
 
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Plugin for Libelium Waspmote
Reply #9 - Aug 6th, 2013 at 9:55am
Print Post  
I just found out that Waspmote's avrdude is always called with "-F". Is there a way to add that Option to Visual Micro plugin?
  
Back to top
 
IP Logged
 
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Plugin for Libelium Waspmote
Reply #10 - Aug 6th, 2013 at 10:26am
Print Post  
I could figure out the VS start problem (using ProcessMonitor):

On startup the plugin is looking for arduino.exe which in my case does not exist. As a workaround I made a copy of waspmote.exe and named it arduino.exe. Restart VS works now without any problems (except the "-F upload issue).

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Plugin for Libelium Waspmote
Reply #11 - Aug 6th, 2013 at 2:18pm
Print Post  
Great I was going to suggest the copy of the.exe but it sounded like it was working.

The next release and current beta builds on codeplex are no longer reliant on the arduino.exe, vm now supports any ide (arduino type).

The version also supports mix and match with arduino 1.5 style properties. This means that an upload recipe can be created with the flag(s) you need.

I think the easiest solution will be to copy the upload properties from the platform.txt of an arduino 1.5 installation into the board properties of the boards.txt you are using. This will work for your current version of vm.

The platform.txt is in arduino1.5exe/hardware/arduinoi/avr
  
Back to top
IP Logged
 
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Plugin for Libelium Waspmote
Reply #12 - Aug 6th, 2013 at 3:26pm
Print Post  
I tried the following:

To boards.txt in the Waspmote IDE directory I added:

Code
Select All
tools.avrdude.upload.params.verbose=-v -v -v -v
tools.avrdude.upload.params.quiet=-q -q
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 "-Uflash:w:{build.path}/{build.project_name}.hex:i" 



but the plugin doesn't listen to that. Do I have to add all the parameters from platform.txt?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Plugin for Libelium Waspmote
Reply #13 - Aug 6th, 2013 at 5:45pm
Print Post  
No each element of the build process looks for the 1.5 options so you only need parts.

but you are missing the property that sets avrdude as the tool to use

upload.tool=avrdude
  
Back to top
IP Logged
 
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Plugin for Libelium Waspmote
Reply #14 - Aug 7th, 2013 at 11:00am
Print Post  
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:
Code
Select All
 #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:
Code
Select All
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
« Last Edit: Aug 8th, 2013 at 10:27am by l1f3@dd.ict »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Plugin for Libelium Waspmote
Reply #15 - Aug 7th, 2013 at 1:19pm
Print Post  
Great news well done for all that effort!

This is easier in the next release of vm. The config you have done will continue to work but obviously when you upgrade waspmote you would need to re-do the config.

The next release allows us to add the boards.txt additions to a supporting file outside of the waspmote config.

It also allows for an override of the arduino.h which means you will be able to use future versions of waspmote "out of the box" without need for hacking.

Thanks for all the work, I assume this thread gives me everything needed to provide a waspmote example with the Visual Micro installer?

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Plugin for Libelium Waspmote
Reply #16 - Aug 7th, 2013 at 8:35pm
Print Post  
Hi, 

Some info.

The Visual Micro version is shown in "Tools>Options>Visual Mcro>Version"

The wrong micro-controller found error is raised if avrdude returns text that contains the words "Expected signature". This is how the arduino ide works so we just copied the code. It seems a bit generic.

Did you switch on Tools>Options>Visual Micro>Compiler>Verbose. This should show the upload command which you can then copy and run from a windows cmd window. You should then be able to see more clearly what is being returned by avrdude

If we can iron this last point out maybe we should include waspmote as an option in Visual Micro. In the latest beta versions on codeplex you will see that Arduino 1.0, Arduino 1.5 and the Energia ide are supported out of the box. We can add waspmote to the list making it easier for other users to setup. All that would be required would be an ide location, the changes you describe below would be automatically handled.
  
Back to top
IP Logged
 
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Plugin for Libelium Waspmote
Reply #17 - Aug 8th, 2013 at 10:43am
Print Post  
Hi Tim,

- I just tested these changes with VS 2012 and AtmelStudio 6.1 - that works fine too (added it also in the "tutorial post"). If you could use some Waspmote testing for 1307 just tell me.

- Yes, I switched Verbose to true and I can see the arvdude call as output
Code
Select All
{waspmote_ide}\hardware\tools\avr\bin/avrdude -C{waspmote_ide}\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -F -patmega1281 -cstk500v1 -PCOM19 -b115200 -D -V 1/myProject.hex:i 


but I can't see what avrdude outputs...
If I copy the command to cmd it works like expected (shows output).

Greets, Michael

P.S.: I found the version of your plugin - I was expecting it in Help->About VS->Visual Micro
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Plugin for Libelium Waspmote
Reply #18 - Aug 8th, 2013 at 11:24am
Print Post  
Thanks,

What is the upload output when you run it via cmd window ?
  
Back to top
IP Logged
 
l1f3@dd.ict
Junior Member
**
Offline


Posts: 20
Location: Leoben (Austria)
Joined: Aug 1st, 2013
Re: Plugin for Libelium Waspmote
Reply #19 - Aug 8th, 2013 at 12:11pm
Print Post  
I just used -v -v and not -v -v -v -v because it would not fit in here Wink

Code
Select All
avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "{waspmote_ide}\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : COM19
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 115200
         AVR Part                      : ATMEGA1281
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           eeprom        65    10     8    0 no       4096    8      0  9000  90
00 0x00 0x00
           flash         65    10   256    0 yes    131072  256    512  4500  45
00 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0
 0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0
 0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.15
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.06s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATMEGA1281 is 1E 97 04
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: reading input file ct.hex"
avrdude: writing flash (60716 bytes):

Writing | ################################################## | 100% 12.77s

avrdude: 60716 bytes of flash written

avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: Fuses OK

avrdude done.  Thank you. 

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint