2

I'm trying to write my first program to ATmega16A but I have an error:

avrdude: AVR Part "atmega16a" not found.

But actually I've changed the chip with a similar ATmega16A and I'm sure that the chip is powered by measuring the voltage on the IC GND and Vcc pins; power is driven from the AVR pocket prog (I bought one a programmer like this one) and I'm trying to apply what is described in this video. The only difference that I'm using ATmega16A; is there any solution for such thing?

#include<avr/io.h>

int main(void)
{
   DDRB = 0b00000001;
   PORTB = 0b00000001;
   while(1)
   {
   }

   return 0 ;
}

avrdude screenshot

JYelton
  • 34,119
  • 33
  • 145
  • 265
  • I just have the same problem, did you resolve it? Thanks! –  Dec 18 '14 at 22:14
  • @NicolásAgustínBarretoValent Well I found that the pocketprog doesn't support the atmega16 but you can use other target microcontrollers. – user3796561 Dec 21 '14 at 00:08

1 Answers1

5

The ATmega16A is a revision of the ATmega16. According to the AVRdude documentation, the part number for the ATmega16 is "m16" (but you can also use the full part name).

Try atmega16 or m16 and leave off the "a".

JYelton
  • 34,119
  • 33
  • 145
  • 265