Arduino mega to program Another Mega 2560

I am having problem with Arduino mega as isp.
I have designed a pcb for Mega 2560 controller. Then i have choose arduino mega as ISP and uploaded the boot loader using my mega Dev board. It worked fine and prompted Boot loader successful. Then i have uploaded Blink program using ISP and it also have gone successful .

But the problem is The blink is int working.

I have noticed that boot file and the program can be successfully uploaded to my custom board,
but the program is not executing.

i have checked for all circuit errors but it all fine.

When i checked the blink pin using volt meter its stays 0 and not toggling as it have be.

then i have also tried to change pin for led but effect is same...

can anyone help me out in this......urgent....pleaseeeee :frowning:

Thanks in advance

Sounds to me you made an error in the PCB design... Hard to tell without the schematic / pcb design.

That could also be a problem with the boot reset vector fuse setting. Last I knew Arduino IDE does not properly set that fuse when uploading sketches by ISP.

dnjlambert is right, i upload the bootleader again using Gammon Forum : Electronics : Microprocessors : Atmega bootloader programmer

but instead of using the fuse with value 0xD8 i put 0xD9, then i uploaded the arduino as isp, and the last i

uploaded the sketch to check the mega2560, note: i used an arduino uno to program a mega2560

hope it helps you

Note that the bootloader will no longer work for serial upload when burned with high_fuses=0xD9, you need to change it back to 0xD8 when you want to use a bootloader. Also you can't upload sketches larger than 128K using the ArduinoISP sketch. Apparently the issues are caused by the old version of avrdude that Arduino uses, see: Program doesn't run after Upload Using Programmer with USBasp (Mega2560) · Issue #246 · arduino/ArduinoCore-avr · GitHub