Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
priscared
PostPosted: Aug 16, 2010 - 05:04 AM
Rookie


Joined: Jun 25, 2008
Posts: 27


Hey all,
I keep having this problem when trying to compile and download my code to the avr.
I am using an avr dragon and a at90usb1287. winavr and avr studio.

When i click build and download, all goes well, it builds and downloads to the device, just as the progress bar is about to finish, it asks me "Please browse to the present location for files opriginally found at c:\avrdev\gcc\gcc-4.3.3\gcc\

I click cancel because that location has never existed (not in the version of winavr i have). It then proceeds to run and debug in disambler view rather than the C code itself.

Any tips?

I also have a problem that every 2-3 uses of build and run, the avr dragon can no longer talk to avr studio. The only solution is to log off my computer and log back on. Seems like a software glitch.

Cheers
ANy suggestions helpful!
 
 View user's profile Send private message  
Reply with quote Back to top
js
PostPosted: Aug 16, 2010 - 06:30 AM
10k+ Postman


Joined: Mar 28, 2001
Posts: 20325
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweiss)

May want to clear up those 18 warnigs!!

_________________
John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Shadowalker273
PostPosted: Aug 27, 2010 - 01:16 PM
Rookie


Joined: Jul 26, 2010
Posts: 31


Hi, priscared,

I just had the same problem: WINAVR Version 20100110,
avrdude v5.19 compiled on Jan 19 2010.
-> New version, old error.
Here the problem is talked about too:
http://www.avrfreaks.net/index.php?name ... highlight=

For Windows-users:

Starting the debugger, it asks me for some path "please browse to present location..." that doesn't exist on my machine. But not telling me what exactly it searches there :-/

I read the whole thread in the link above until i found that
Quote:
for #a in (*.a) do avr-strip -g #a


This is a linux-shell command i assume, for i don't know this as a windows... erm.. DOS command.
But it explained the cause of the problem ,-)

Searched for the respective files containing the string"c:\avrdev\" in my WINAVR dir.
Found ~50 files responsible for ~5 controller families.. jeez.
Unable to use the mentioned linux shell cmd, editing all by hand didn't seem a good idea to me.

So when invoking the debugger (with avrdragon vs AT90USB1287) and again being asked "browse to present location" i told WINAVR the correct path this time.
I sent it to the root path of the respective subpaths where the explorer found the matching *.a files. On my machine:
F:\Programme\WinAVR\lib\gcc\avr\4.3.3

And it worked!
Even remembers it after a restart of AVRStudio 4.18.
This also clears the mentioned warnings when recompiling the project.
Smile

Thanks to all the cracks in here leading me on the right way to the solution!
Back to my new dragon ... Smile
 
 View user's profile Send private message  
Reply with quote Back to top
priscared
PostPosted: Aug 29, 2010 - 06:30 PM
Rookie


Joined: Jun 25, 2008
Posts: 27


oh thanks for your reply. i'll give it a try when i get back to avring... xilinxing atm. thanks so much.
 
 View user's profile Send private message  
Reply with quote Back to top
tmaughan
PostPosted: Oct 08, 2010 - 11:22 AM
Rookie


Joined: Jun 28, 2007
Posts: 37
Location: UK

I've just run into this problem. Tried the new AVR toolchain and AVRstudio SP3 from Atmels website and I still get it. It just comes up with a different missing directory location Smile
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Oct 08, 2010 - 11:46 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62228
Location: (using avr-gcc in) Finchingfield, Essex, England

Then "avr-strip -g" all the .a's and .o's in the avr/lib/* tree.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
tmaughan
PostPosted: Oct 08, 2010 - 12:11 PM
Rookie


Joined: Jun 28, 2007
Posts: 37
Location: UK

That did fix it, but can't someone do that and re-release the package?

The winavr20100110 package on sourceforge, released on the 20th of jan and supposed to be fixed still has the debug in.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Oct 08, 2010 - 12:54 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62228
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

The winavr20100110 package on sourceforge, released on the 20th of jan and supposed to be fixed still has the debug in.

I pointed it out to Eric after the release on the 10th and he said it was down to trying to make a script for both AVR8 and AVR32 which then failed to apply the avr-strip to either set of libs. He thought he'd corrected this in the set of files built on the 19th and released on the 20th but it turned out later that he hadn't caught all the affected files. When I pointed this out he said so few people were affected that he wouldn't be rebuilding/re-releasing WinAV20100110 a third time.

It is a bit of a shame if history has now repeated itself in this "AVR Toolchain". Personally I'd give it a few months for the beta testing to complete before downloading/using it if I were you.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
tmaughan
PostPosted: Oct 08, 2010 - 02:03 PM
Rookie


Joined: Jun 28, 2007
Posts: 37
Location: UK

Oh well, fingers crossed it gets sorted in the next release.
 
 View user's profile Send private message  
Reply with quote Back to top
Shadowalker273
PostPosted: Dec 07, 2011 - 10:32 AM
Rookie


Joined: Jul 26, 2010
Posts: 31


Jeez, one year has gone, forgot about it.

Now i've installed the current Atmel toolchain instead of WINAVR and just ran into the same issue :-/

Hei, 'Hudson'@Atmel, it's the path on your machine, the debugger says he cant find on mine: "F:\home\hudson\....".. sth. like that

Could you please take some time and mend this once in a while?
Or is there already a newer version of the toolchain upcoming?

And, Clawson, could you please tell some more word about the handling of avr-strip on a Windows machine:
Quote:
Then "avr-strip -g" all the .a's and .o's in the avr/lib/* tree.

- Do it in every respective dir, or is there some 'descend in subdirs' option?
- How to define the *.o and *.a-mask for avr-strip?

Thank you all!
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Dec 07, 2011 - 10:37 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62228
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

And, Clawson, could you please tell some more word about the handling of avr-strip on a Windows machine:

http://www.avrfreaks.net/index.php?name ... 956#884956

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Shadowalker273
PostPosted: Dec 07, 2011 - 12:28 PM
Rookie


Joined: Jul 26, 2010
Posts: 31


Thank you, Clawson, hahaha.... the 'Hudson' problem *gg* ok, didn't know, that it's got a name already...Seems to be right my current issue.
Ok, i'll go on reading there.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits