Post a new topicPost a reply Page 5 of 6   [ 53 posts ]
Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: External IDE
PostPosted: Thu Feb 23, 2012 3:14 pm 

Joined: Wed Feb 22, 2012 1:34 pm
Posts: 22
The code is the blinkled example, so it should work.

The linker has correctly set up all libraries, and compiling, recompiling and adding settings all over again suddenly seemed to work.

Now, the problem I have is that the defines (LED0, LED_On) is not reachable and AVRDude tells med STK500 out of sync.

I tried uploading from Waspmote IDE on same COM-port and it worked, so I can't really see what may be the problem now.

Thank you for your input!


Top
 Profile  
 
 Post subject: Re: External IDE
PostPosted: Thu Feb 23, 2012 3:19 pm 

Joined: Wed Oct 05, 2011 12:05 am
Posts: 60
Then this sounds like a driver problem. It appears that you cannot access the board via Eclipse. Have you tried to update the device drivers? If not, I would look into that. Try doing some search on drivers for Eclipse to use AVR.

Unfortunately, because I have not dealt with such a problem in detail like yourself, I am unable to suggest any websites or drivers etc. Sorry...


Top
 Profile  
 
 Post subject: Re: External IDE
PostPosted: Thu Mar 08, 2012 2:51 pm 

Joined: Fri Oct 14, 2011 4:14 pm
Posts: 34
Location: Fribourg, Switzerland
educc wrote:
Thanks Michael!.

I take the advantage of this post to tell everybody I have written
an adapted tutorial to program the Waspmote using Eclipse.

Tutorial: http://www.eduardocc.com/EclipseWaspmot ... orial.html

I hope you find it useful!.

Edu.


Thank you very much for the tutorial, it was very useful. I just started toying around with the waspmote and having an IDE with helps is pretty useful.

I have just one little problem, I tried the BlinkLed but after I do the build, I cannot upload it in the waspmote, it gives a timeout error and I don't know why?

Code:
Launching C:\WinAVR-20100110\bin\avrdude -pm1281 -cstk500v2 -P//./COM8 -b38400 -Uflash:w:BlinkTemplate.hex:a
Output:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude execution aborted


Anyone did have this error too?


Top
 Profile  
 
 Post subject: Re: External IDE
PostPosted: Fri Mar 09, 2012 2:54 pm 

Joined: Fri Oct 14, 2011 4:14 pm
Posts: 34
Location: Fribourg, Switzerland
I managed to resolve it. I checked in the AVRDude configuration and I saw that I had selected the
Code:
Atmel STK500 Version 2.x firmware
instead of 1.x Now it works perfectly. :D


Top
 Profile  
 
 Post subject: Re: External IDE
PostPosted: Mon Mar 12, 2012 1:31 pm 

Joined: Fri Oct 14, 2011 4:14 pm
Posts: 34
Location: Fribourg, Switzerland
I've got another question. Does anyone know where to put the -D option because my code uploads very slow, like more than 1 min. I got this msg:
Code:
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.

I tried in the Preferences of the project and even in Window > Preferences, but still i don't know where to put it.


Top
 Profile  
 
 Post subject: Re: External IDE
PostPosted: Mon Mar 12, 2012 2:59 pm 

Joined: Wed Oct 05, 2011 12:05 am
Posts: 60
Hi HellDrag,

The -D option prevents auto flash erasure. When you use -U option, auto erase is executed automatically prior to programming. To stop this from happening, use the -D option just before the -U option. If this does not work, call -D just after the -U option.

Not erasing the flash before programming it will save you time indeed. However, programming the flash without performing a full erase is not generally recommended. Your code may not work as you expect due to false writes on the flash. Please be aware !

I would say just try it and see. If you see some strange code behaviour, that will be due to not erasing the flash.

Please keep us posted on how it goes.

Good luck & may the force be with you ! :)


Top
 Profile  
 
 Post subject: Re: External IDE
PostPosted: Mon Mar 12, 2012 3:20 pm 

Joined: Fri Oct 14, 2011 4:14 pm
Posts: 34
Location: Fribourg, Switzerland
Hi Cryptoman,

Thanks for your response, but i have already made some research on the -D option. I read somewhere (don't remember right now) that the memory of waspmote (or maybe the of atmega1281, not sure) is made of pages, or smth like this. So whenever we upload smth, even without erasing the memory, are the pages that get erased or overwritten.

My problem is that I cant find any textbox or smth similiar on the AVRDude, in the project preferences, where I can insert the -D option, so I can't really try it for now.

Thanks again.


Top
 Profile  
 
 Post subject: Re: External IDE
PostPosted: Mon Mar 12, 2012 3:30 pm 

Joined: Wed Oct 05, 2011 12:05 am
Posts: 60
Hello again,

I presume you are looking for textboxes etc in Elipse. Have you tried the following:

Projects > Properties > AVR > AVRDude > Advanced . There should be a checkbox at the very bottom of that page called "Auto Chip erase Cycle (-D)". I think that's what you need to tick.


Top
 Profile  
 
 Post subject: Re: External IDE
PostPosted: Mon Mar 12, 2012 3:31 pm 

Joined: Fri Oct 14, 2011 4:14 pm
Posts: 34
Location: Fribourg, Switzerland
I finally found where to put other options that are not specified in the plugin. It was under the

project Properties> AVR > AVRDude - Tab Other - Other options.

I made some little tests with the uploading speed and it seems to be the same as without the -D option.

It was like 1 minute and 30 seconds for both configurations.

I thought it would help but nothing happened. Thus, I'm going to delete the -D option and work like before.

Thanks again.


Top
 Profile  
 
 Post subject: Re: External IDE
PostPosted: Mon Mar 12, 2012 3:33 pm 

Joined: Fri Oct 14, 2011 4:14 pm
Posts: 34
Location: Fribourg, Switzerland
You were faster than me lol.

Now i see it, but as i said it should not make a difference.

Thanks again.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 5 of 6   [ 53 posts ]
Go to page Previous  1, 2, 3, 4, 5, 6  Next


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use