Connecting a STK500 to ATmega32

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi guys,
I'm probably writing in the wrong place but its getting late.
I recently purchased a cheap STK500 copy and have for the last few hours been trying to get it to connect to my ATmega 32. Is there some secret i dont know about?
Atm, i'm connecting it like this:

STK500 ATMEGA
P1 MISO - TDI
P2 VTG -- VCC
P3 SCK -- TCK
P4 MOSI - TDO
P5 /RES - RESET
P6 GND -- GND

I've used JTAGS in the past and i know that you also need to connect something up to TMS, what's the deal with stk500 is there something i'm missing?

Every time i try to connect in AVR studio (try to erase the device), I get an ISP error

Any help would be appreciated
Thanks in advance,
Matt

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Why would you be connecting an STK500 to JTAG pins. The STK500 is an ISP (and high voltage) programmer, not a JTAG interface, connect it to the ISP pins, not the JTAG pins on the mega32. See the "serial programming" section of the mega32 datasheet for details of which pins are used for ISP

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Also you may want to check if the status LED first blinks and then turns green and if the M32 is in the right socket on the AVR board.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

if the M32 is in the right socket on the AVR board.

But he's surely connecting a cable from the STK500 to a target board containing the mega32? If the mega32 were in a socket on the STK500 it'd simply be a case of jumpering ISP6PIN to the right header?

(of course this thing may call itself an "STK500" but that doesn't mean it's really one - maybe just some ISP clone that happens to talk the STK500(v2) protocol to AVR Studio - perhaps it doesn't have a prototyping area at all?)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yeah, i should have specified, its not the typical board you would expect. It has a 6Pin IEC cable coming out of it and my M32 is just on a bread board hence why it isnt just a matter of plug in play.
Thanks for the help so far, i'll check out how M32 is supposed to be connected to an ISP programmer.
Matt

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok got it working, thanks for the help guys. To clarify i had originally a few weeks back tried to connect it to the right pins, but with no success, so i started experimenting with other ways of connecting it. it turns out that the unit had an incorrect pin 1 identifier arrow! I'm not mad anymore cos it works now...but seriously? :-)
Thanks guys,
I might put up my project i'll be working on later
Matt