I am using Atmega2560 for my project. I want to upload my arduino code on it. I tried to upload Bootloader first , using Arduino as ISP and USBASP. I failed in this. I am getting the error "avrdude: error: program enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
Error while burning bootloader."
And also "Yikes, invalid device signature. Please check your connections."
How do I solve this issue?