| Author |
Message |
|
|
Posted: Jun 18, 2012 - 02:07 PM |
|

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 |
|
|
| |
|
|
|
|
|
Posted: Jun 18, 2012 - 02:27 PM |
|


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. |
_________________
|
| |
|
|
|
|
|
Posted: Jun 18, 2012 - 02:34 PM |
|

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? |
|
|
| |
|
|
|
|
|
Posted: Jun 18, 2012 - 02:48 PM |
|


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. |
_________________
|
| |
|
|
|
|
|
Posted: Jun 18, 2012 - 05:45 PM |
|

Joined: Jan 10, 2008
Posts: 11
|
|
| Ok, got the Dragon on order .. Sorry to bother y'all with this. |
|
|
| |
|
|
|
|
|