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
ctclibby
PostPosted: Jun 18, 2012 - 02:07 PM
Newbie


Joined: Jan 10, 2008
Posts: 11


I searched the forum, found other 'failure to launch' posts but they did not relate to my problem.

I can build and download to a Mega8 with no problems, it runs the code I expect ( test stuff, flash ports, use IRQ's to flash ports ) but when I select the STK500 for the simulator I get the "failure to launch" message - says "ERROR: An error occured when executing command with ID 0x11, time out waiting for a response, 68 characters was discarded while waiting for response start stoken" Their spelling, not mine.

Have I missed some sort of time out parameter that needs set in studio somewhere?

Thanks!

todh
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jun 18, 2012 - 02:27 PM
10k+ Postman


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

Quote:

but when I select the STK500 for the simulator

That makes no sense. Did you mean "select the mega8 for the simulator"?

The simulator is a software simulation of an AVR chip - it has nothing to do with programmers such as the STK500.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
ctclibby
PostPosted: Jun 18, 2012 - 02:34 PM
Newbie


Joined: Jan 10, 2008
Posts: 11


Um ... maybe I do not understand .. I can select the STK500 as the programmer/simulator in the build tools and I assumed that I debug using that. I take it that it is not an option even though I can select it?
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jun 18, 2012 - 02:48 PM
10k+ Postman


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

Quote:

and I assumed that I debug using that

No to do on chip debugging you need to buy an interface from Atmel that is capable of doing such debugging. The STK500 is not. It is just a (very capable!) programmer.

So your debug options are either printf/LED/whatever in the code or to use a PC simulation of the AVR (but sadly not all the surrounding electronics).

If you want true on chip debugging switch to a mega88PA and pay $50 to buy a Dragon.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
ctclibby
PostPosted: Jun 18, 2012 - 05:45 PM
Newbie


Joined: Jan 10, 2008
Posts: 11


Ok, got the Dragon on order .. Sorry to bother y'all with this.
 
 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