STK500 rank newbie problem.

Jim Ford <[email protected]> Sat, 4 Oct 2003 15:16:15 +0100
Newsgroups gmane.comp.hardware.avr.general
Message-ID <[email protected]>
Hi,

Just taken delivery of a STK500 board. The test program on the supplied
ATS8515 worked OK (but with switch bouncing - the program doesn't cater for
this!)

I'm now trying to program a AT90S1200 with the simplest of programs that I
picked up somewhere:

.include "1200def.inc"
.def Temp = R16
.org 0x0000

     rjmp RESET

RESET:
     ldi Temp, 0xff
     out DDRB, Temp
     
Loop:
     out PORTB, Temp
     dec Temp
     rjmp Loop

It runs fine in AVR Studio, but if I try programming the target, I get a
warning that the Flash contents differ from the file, and the program
doesn't work as expected. I can erase the device and verify the signature
without problems. I've got the device in the right socket and the ISP6PIN
socket connected to SPROG3, as shown in the manual for ISP programming.

Ideas, anyone, please?

Regards: Jim Ford


-- 
Spam poison - don't use! ---> [email protected] <---