Problems with AVR-PG2B and AVR-P40B-8535 Board

Hi, I bought recently an AVR-PG2B programmer and the AVR-P40B-8535 prototype board made by Olimex. Unfortunately I cannot correctly program my device using this tools. I try to flash an ATmega162 since several days with the newest PonyProg2000 V2.06c beta programmer but I get in 50% of all tries a device failure. If there is no failure, I noticed that only the first flash page (128 Byte) was correctly flashed - the other following flash pages are empty (0xff). The fuses have the default settings from Atmel.

Today I exchanged part by part of my development toolchain with a toolchain of my collegue who uses an Atmel STK200 board with an Atmel-ISP-Programmer. With the Atmel toolchain and my ATmega162 controller all worked fine. It seems the only part which influences the faulty behavior is the AVR-P40B-8535 prototype board. Do anyone have the same problems? Perhaps someone (or Olimex himself) has already a solution? I think it may be a EMV influence on any signal (maybe SPI clock) but I don’t really know. At the moment I don’t have any more ideas how to solve this problem and really at a loss… :frowning:

Thanks for any help,

Marc

Is the 8535-40 board pin compatible with a Mega162 ??

I Know the 8535 & the M16 & the M32 is pin compat (I use it for M32), but are you sure the M162 fits in ?? (I mean miso/mosi/xtal pins etc)

/Bingo

Oh, sh**! The VCC and GND pins are not at the same place! :oops: I’m wondering why the device was running at all… I think I have to have a closer look on the circuit design of the prototype board.

I thought the ATmega series is like other microcontroller series which usually share the signals at the same pins if they have the same pincount. But obviously with the AVR series it’s not the same…

Thanks a lot for your help!

Marc