How to detect Atmega 1284p is damaged or not

Hi everyone!
I own a 3D-printer based on a Melzi board with Atmega 1284p, such this one
For a few month ago the board was broken - input voltage regulator AMS1117-5.0 was burned. I bought new one and solder it, but has no any response from the board.
I try to reflash the firmware for printer but AVRDUDE sent message that no any response from the board.
Then i try to burn the bootloader, first I used Arduino ISP through Arduino Nano, then Mega. Later I bought the UBASP programmer, such that
and try to reflash thу board - the result is the same.

Using Arduino Nano/Mega
Arduino: 1.8.5 (Windows 10), Плата:"Sanguino, ATmega1284 or ATmega1284P (16 MHz)"
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xff

Using an USBASP programmer earlier i receive the same but now whats happened with my programmer and AVRDUDE send this error:

avrdude.exe -p m1284p -c usbasp -P usb -U flash:w:"C:\xxx_folder_name_xxx\1284p.hex":a

avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: error: programm enable: target doesn't answer. 1 
avrdude.exe: initialization failed, rc=-1
             Double check connections and try again, or use -F to override
             this check.

avrdude.exe done.  Thank you.

At the Russian-speaking forum somebody said that Atmega on the board was died and must be re-soldered to a similar chip. I was going to buy the same chip, but the seller warned that it also does not have a preburned bootloader. :sob: :sob: :sob:

So, is there a way to check chip - it's live or dead?
and separetely the question - what programmer should I buy for flashing the bootloader with a 100% result?

Much thanks in advance!!!

First you should start by measuring the VCC pins on the ATmega1284P. Then, if you have an oscilloscope you can check if the oscillator is running by measuring the signal on the XTAL1 pin. A 16 MHz sine wave is a good sign.

Hi everyone!
Mr. hansibull. I need to measure vcc pins on 1284 such on this pic, where VCC are the output voltage pins?
What is AVCC pin?

Unfortunately, I don't have an oscilloscope and can not see what is on xtal pins :confused:

Thanks in advance!

Check all Vcc pins. AVCC is power for analog pin and internal ADC, usually they are tied to same as Vcc.

Levinsoft:
What is AVCC pin?

Check this

Levinsoft:
Hi everyone!
I need to measure vcc pins on 1284 such on this pic, where VCC are the output voltage pins?

Measure the voltage on the pins marked 'VCC' on the picture you posted.

First you should start by measuring the VCC pins on the ATmega1284P. Then, if you have an oscilloscope you can check if the oscillator is running by measuring the signal on the XTAL1 pin. A 16 MHz sine wave is a good sign.

This is indeed a very good start.

However, in my experience, its possible that both supply voltage and Oscillator is fine and still other parts of the MPU have failed. For example some IO pins or serial interface etc