Re: Can't write with avrdude and stk200, help please!]
[email protected] Thu, 24 Jul 2003 09:33:26 -0600
| Newsgroups | gmane.comp.hardware.avr.general |
|---|---|
| Message-ID | <[email protected]> |
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. 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 :-)