standalone arduino mega 2560

hi, i’m new to this forum. i tried to make a standalone arduino mega2560 using atmega2560 on my custom board. i got problem when i want to burn bootloader. the error message is like this pictures. what should i do?

sadf.PNG

Was it easier to capture an image than to cut and paste text?

This is what my ISP tool said when I tried to upload optiboot into the air.

avr-gcc (GCC) 5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

115200 RATE CHECK: Desired: 115200, Real: 117647, UBRRL = 16, Error=2.1%
rm -f baudcheck.tmp.sh
avr-gcc -g -Wall -Os -fno-split-wide-types -mrelax -fno-caller-saves  -DF_CPU=16000000L -DBAUD=115200 -DLED_START_FLASHES=0  -DLED=B5  -mmcu=atmega328p -c -o main.o main.c
main.c:97:6: warning: #warning BAUD error greater than 2% [-Wcpp]
     #warning BAUD error greater than 2%
      ^
avr-gcc -Wl,--section-start=.text=0x7e00 -Wl,--section-start=.version=0x7ffe -Wl,--relax -nostartfiles -nostdlib -mmcu=atmega328p -o optiboot_rpuno_atmega328p_-b115200_F_CPU16000000L.elf main.o -lc
avr-size -C --mcu=atmega328p optiboot_rpuno_atmega328p_-b115200_F_CPU16000000L.elf
AVR Memory Usage
----------------
Device: atmega328p

Program:     434 bytes (1.3% Full)
(.text + .data + .bootloader)

Data:          0 bytes (0.0% Full)
(.data + .bss + .noinit)


avr-objcopy -j .text -j .data -j .version --set-section-flags .version=alloc,load -O ihex optiboot_rpuno_atmega328p_-b115200_F_CPU16000000L.elf optiboot_rpuno_atmega328p_-b115200_F_CPU16000000L.hex
avrdude -v -p atmega328p -c stk500v1 -P /dev/ttyACM0 -b 19200 -e -U flash:w:optiboot_rpuno_atmega328p_-b115200_F_CPU16000000L.hex -U lock:w:0xEF:m

avrdude: Version 6.3
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/rsutherland/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0xffffff (probably .reduced_core_tiny) (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0xffffff (probably .reduced_core_tiny) (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0xffffff (probably .reduced_core_tiny)
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

One of my ISP pins (that reads the data from the target) is HIGH, so the signature reads as all 1's (thus the 0xffffff). I am guessing you have a short since yours is reading 0's.

Are you using a crystal? If so, is the crystal connected properly? If not, did you burn bootloader with a board def that told it to use a crystal? If so, you've softbricked it (and the output for the first attempt at programming would have shown it successfully setting fuses, then erroring out when writing flash). If you've done that you need to connect a crystal or clock source, and then set the fuses correctly. I recommend using megacore if you're using a non-standard clock source on a mega-like chip.

Other than that, recheck all wiring, make sure the ISP pins are actually the ones you think they are.

hey guys. i've found the solution. you just need to press reset button right before the uploading state happened.