Hello,
So I was thinking wether it is possible to program an Arduino atmega 2560 with an Arduino uno board
I tried doing it by connecting the icsp header pins and the reset pin of 2560 with d10 of Arduino.
However upon sending to the sketches through ide the following error is being shown
Timeout communicating with the programmer
I also tried installing the bootloader again and it worked fine but same error while uploading the sketches
The fact that you can burn the bootloader indicates that your wiring is OK.
Did you use Sketch → Upload Using Programmer in the IDE when uploading the sketch via the Uno? If yes, please enable verbose output during upload and disable verbose output during compuilation in File → Preferences in the IDE and post the resulting output if the upload fails again. I might be out of my comfort zone when it comes to analysing it but others might have an idea.