ATMEGA2560 bootloader

Sorry if this is a duplicate question but I haven't find the answer.

For my project I'm considering writing a custom bootloader for the ATMEGA2560 but I want to go back to the original if the new one doesn't meet my expectations.

My question: I noticed that the arduino IDE can reprogram the bootloader using a variety of ISP programmers... I learned this the hard way after messing up the original bootloader while playing with avrdude.

I found a bunch of intel HEX files in the \Program Files\Arduino\hardware\arduino\avr\bootloaders directory but I don't know which file is used for the MEGA2560. I think the file is in the "mega" directory but I'm not 100% sure.

Can somebody point me in the right direction?




Got it thanks