Programming an Attiny25 using the STK500

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

I want to use the ATtiny25 but I am having difficulty determining which socket to program it in.I have looked in the STK500's user guide but it does not seem to have been updated anytime after the Attiny25 has been supported by the STK500. The STK500 has two sockets that would fit the 8-pin device but I am not sure which one to use, the SCKT3600A1 or the SCKT3400D1. Also the user guide states that on certain 8-pin devices (ATtiny11,12,15)one needs to have the reset line connected to the reset pin externally. Does this also apply to the ATtiny25? Any help is appreciated.

Thanks,
Josh

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

SCKT3400D1 with Serial High-Voltage programming:

"The 8 pin AVRs have too few pins to use parallel communication during High-Voltage programming. They use serial communcation instead. This means that less signals have to be routed. HW setup for serial High-Voltage programming is:

1. Switch power off

2. Place the device to program in its socket according to the table in the High Voltage Programming section.

3.Mount jumper OSCSEL on pin 1 and 2 to select SW controlled clock

4. Mount jumper XTAL1 to route the oscillator signal to the device

5. Mount jumpers VTARGET and RESET

6. Use on 2-wire cable to connect the PB3 pin (pin 4) on the PORTB header to the XT1 pin (pin 7) on the PORTE / AUX header. This will connect the clock system to the AVR device.

7. Use another 2-wire cable to connect the PB5 pin (pin 6) on the PORTB header to the RST pin (pin 4) on the PORTE / AUX header. This will connect the reset system to the AVR device.

8. Use a third 2-wire cable to connect the PB0 and PB2 pins (pins 4 and 3) on the SPROG1 header to the DATA0 and DATA2 pins (pins 1 and 3) on the PROG DATA header.
Use the last 2-wire cable to connect the PB1 pin (pin 1) on the SPROG1 header to the DATA1 pin (pin 2) on the PROG DATA header.

9. Switch power on and you are ready to program
"

As found in the help file of AVRStudio 4.12.

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

After your post I was able to find the updated STK500 user guide through the help in AVR Studio as you mentioned.

Thanks,
Josh

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

My tryed to program the Attiny25 in ISP mode(on STK500 POPUP Menu in the AVR studio) with the above mentioned procedure. But while checking for signature an error appears. So I tryed for HVSP mode with same connection. Error message is not shown but the signature read doesn't match target device message shown. So I removed Step 8 connections and used the ISP 6 pin connector from ISP connector to SPROG1 connector. Now it's working Attiny25 get programmed. Why it is not working with the above mentioned connection procedure? While connecting I forget to remove the power supply for STk500. Does it result in any failure in my STK500? Please help....