Re: Re: Can't write with avrdude and stk200, help please!]

Sten Dahlgren <[email protected]> Fri, 25 Jul 2003 01:06:09 +0200
Newsgroups gmane.comp.hardware.avr.general
Organization Enea Realtime AB
Message-ID <[email protected]>

[email protected] wrote:

> Actually, U can inline "-e" (erase) option (eg. avrdude -e -c stk200 -p 
> 8515 -i demo.hex)
> But better yet, U can reset Ur MCU after it finished. Use "-E reset" 
> option.
> So U dont need to turn off Ur MCU (and connecting led+resistor).Just 
> connect led+resistor. After avrdude finished,Ur gonna see Ur LED flashed.



It seems that it's reset after the loading so that it does a reset and 
program starts, jupp verified by doing this

avrdude -p 85151 -c stk200 -f i -m flash -e -i test_lcd.hex

> Sten Dahlgren writes:
>

>>
>> 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 :-)
> 
> 
> _______________________________________________
> avr-chat mailing list
> [email protected]
> http://www.avr1.org/mailman/listinfo/avr-chat
>