Making ATmega16A compatible with Arduino IDE-1.8.5

Hi,

Is there any procedure available to make Atmega16A compatible with Arduino-1.8.5.
Tried MightyCore but has some issues.Couldn't upload code to Atmega16 board with
stk500v2 programmer.

PFA for the error.

Regards,

Also posted at:

You really haven't provided much information so for now I'm going to guess the issues are yours rather than MightyCore's.

Please do this:

  • File > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
  • Do the upload
  • After the upload fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
  • Paste the error messages in a reply here USING CODE TAGS (</> button on the toolbar).

Thanks a lot. Here is the error message output :

Arduino: 1.8.5 (Linux), Board: "ATmega16, Standard, 2.7v, Disabled (default), 16 MHz external"

Sketch uses 1120 bytes (7%) of program storage space. Maximum is 15872 bytes.
Global variables use 11 bytes (1%) of dynamic memory, leaving 1013 bytes for local variables. Maximum is 1024 bytes.
/home/manas/Documents/arduino-1.8.5/hardware/tools/avr/bin/avrdude -C/home/manas/.arduino15/packages/MightyCore/hardware/avr/2.0.1/avrdude.conf -v -patmega16 -carduino -P/dev/ttyACM0 -b115200 -D -Uflash:w:/tmp/arduino_build_457012/button_state.ino.hex:i 

avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/manas/.arduino15/packages/MightyCore/hardware/avr/2.0.1/avrdude.conf"
         User configuration file is "/home/manas/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

And this is the piece of code i am using

/*
  Button

  Turns on and off a light emitting diode(LED) connected to digital pin 13,
  when pressing a pushbutton attached to pin 2.

  The circuit:
  - LED attached from pin 13 to ground
  - pushbutton attached to pin 2 from +5V
  - 10K resistor attached to pin 2 from ground

  - Note: on most Arduinos there is already an LED on the board
    attached to pin 13.

  created 2005
  by DojoDave <http://www.0j0.org>
  modified 30 Aug 2011
  by Tom Igoe

  This example code is in the public domain.

  http://www.arduino.cc/en/Tutorial/Button
*/

// constants won't change. They're used here to set pin numbers:
const int buttonPin = 2;     // the number of the pushbutton pin
const int ledPin =  28;      // the number of the LED pin

// variables will change:
int buttonState = 0;         // variable for reading the pushbutton status

void setup() {
  // initialize the LED pin as an output:
  pinMode(ledPin, OUTPUT);
  // initialize the pushbutton pin as an input:
  pinMode(buttonPin, INPUT);
}

void loop() {
  // read the state of the pushbutton value:
  buttonState = digitalRead(buttonPin);

  // check if the pushbutton is pressed. If it is, the buttonState is HIGH:
  if (buttonState == HIGH) {
    // turn LED on:
    digitalWrite(ledPin, HIGH);
    delay(1000);
  } else {
    // turn LED off:
    digitalWrite(ledPin, LOW);
    delay(1000);
  }
}

You said “stk500 programmer”, but it looks like the upload is trying to use the bootloader (“-carduino”)

Y

westfw:
You said “stk500 programmer”, but it looks like the upload is trying to use the bootloader (“-carduino”)

Indeed. All you need to do is say "upload using programmer" I think (though you'll probably need to "burn bootloader" first to set fuses if they're not already set - or just use the bootloader and upload by serial)

Thanks,it worked.

While trying to upoload StandardFirmata Arduino Example to Atmega16, i am getting this error messages

PFA for screenshots as the error messages size is crossing the limits.

It uses Firmata library. So, do i have make any changes to Boards.h in Firmata library to work with MightyCore for Atmega16 controllers?

Don't post screenshots of text! That is very unhelpful. When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar). It is almost never appropriate to post screenshots but in some cases it is helpful to post images. In those cases you should attach and embed the image following these instructions:
http://forum.arduino.cc/index.php?topic=364156