Re: Can't write with avrdude and stk200, help please!]
Sten Dahlgren <[email protected]> Wed, 23 Jul 2003 22:58:46 +0200
| Newsgroups | gmane.comp.hardware.avr.general |
|---|---|
| Organization | Enea Realtime AB |
| Message-ID | <[email protected]> |
aaahrmmmm...
I solved the problem my self. A classical example of RTFM (all the one's
needed).
This is how i solved my problem(s)
1: The chip needs to be erased first (stupid chip :-)
avrdude -p 8515 -c stk200 -e
2: Program it
avrdude -p 8515 -c stk200 -f i -m flash -i demo.hex
3: Now connect a resistor and led to pin PD5
4: Poweron and watch the light!
i bet you all waited to see this before you mail a comment :-)
Sten Dahlgren wrote:
>
> I have downloaded the latest WinAVR and compiled the demo prog and tried
> to download to my stk200 but i get lines like this
>
> 0 ***failed;
> ***failed;
> .
> .
> 16 ***failed;
>
> aso...
>
> This is what i have tried.
>
> Reading the testprog from the stk200 worked (no errormessages)
> And i run a disassembler on the hexfile and it produced
> some code that looked ok to me.
> Changed from wallwart to real powersupply.
> Changed parport to use PCIboard with extra lpt's.
> Tried another computer.
> Tried " -v -v -v -v -v" but got no mure useful info.
>
> If someone has a tip i would be glad otherwise i have to start trying to
> compile and debug avrdude on windows (XP) and since i normally work with
> unix(linux) systems this would be a timeconsumer to get it up and
running.
>
> regards
> /Sten
>
>
> _______________________________________________
> avr-chat mailing list
> [email protected]
> http://www.avr1.org/mailman/listinfo/avr-chat
>