AVRISP Programming issues

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

I got suckered into buying one of those AVRISP clones with a usb-rs232 chips (pl-2303) while annoying it does what I wanted so I didn't make to much of a fuss.

Last year when I last used it I locked my atmega32 and haven't touched an avr since. Tonight I hooked up my board and popped in an atmega16 and plugged in the programmer and this is what it said:

(I configured the programmer for AVRISP COM1)
Upon pressing the program button i get the ATK500 in ISP mode with atmega16 as expected. Info screen says:
AVRISP with V2 firmware found on COM1
Getting Revisions HW 0x0f SW Major 0x02 SW Minor 0x0a.. OK
Getting isp parameter SD=0x02.. OK

But upon trying to read the signature, program, erase or ANYTHING it gives the 'ISP Mode Error'

It worked last year and I haven't been in avr studio for all that time so is their a configuration im missing, isp mode setting or something? I also tried to upgrade the firmware with 'Tools > AVR Prog' and I get 'No Supported Board Found! AVRProg version 1.40'

Anyone know how I can make this thing work? I checked the pinout from the atmega 8535 to the avrisp schematic and its a direct clone so I figured if I track down the "manual firmware upgrade jumper" I could make it work but I have no idea where that is on the schematic.

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

Ok so I busted it out of its case and traced all the components to see if its a standard copy of an AVRISP MKI and not a custom job. While the PCB is completely different and the AT90S1200 doesn't exist its an exact copy as the original except these parts:
- Chip is powered from USB so no VCC on ISP Header
- HW revision resistors are different (Why??)
- PB4 is to a test point, Original is pulled high

The AVRISP MI user manual says for a manual firmware upgrade you short the left most pins of the 'ISP Jumper Selection' (assuming the square pin was 1 in the pic you short 4&5) which would pull PB4 low.

On my device I have tried pulling PB4 low, pulling it high with a 10K resister and then pulling it low and nothing I can do will cause it to go into upgrade mode. Luckily while doing all this I discovered that it works.. Kinda...

The programmer has a 3.686MHz osc, with 8div fuse and 1/4 for ISP you get 115kHz max for programming (Since you can only program as fast as your programmer) However in AVR Studio 4 with 115kHz & 57kHz I cannot read the device signature or the fuse bits, but with 4kHz and 1.3kHz I can read and program the fuse bits (I know as i enabled clock on PB1 and I can change with the the 8div fuse) but you cant program flash slower than 5kHz and when I go above 4kHz I can no longer communicate.

- Current chip is ATMEGA164P
- AVR Studio is 4.16.628
- Programmer works, just not >4kHz

Anybody have any ideas? I don't want to buy an AVRISP MKII even though they are only $35 as I JUST did an order from digikey and will wait untill next month for another.

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

The first thing I would do is to upgrade Studio to build 638 (SP1 for V4.16) just in case.

Have you tried another chip? Maybe the clock fuses have been set for some strange setting. Can you reset it for the internal 1MHz clock? Also make sure that the lead from the programmer to the chip is something not longer than 100-150mm.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Hey, I finally got it to work last night. For some random reason it will only program reliably at 14.07kHz but it will now read signatures. fuses, and program 100% of the time so im happy. I even thought I locked my atmega16 but now its working too.