2
\$\begingroup\$

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

\$\endgroup\$
2
  • \$\begingroup\$ I just have the same problem, did you resolve it? Thanks! \$\endgroup\$
    – user61724
    Commented Dec 18, 2014 at 22:14
  • \$\begingroup\$ @NicolásAgustínBarretoValent Well I found that the pocketprog doesn't support the atmega16 but you can use other target microcontrollers. \$\endgroup\$ Commented Dec 21, 2014 at 0:08

1 Answer 1

5
\$\begingroup\$

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".

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.