OMG - I'm starting to sound like PaulS !
holmes4 saysWhy not leave the bootloader alone and put your bits where they belong in setup(). The name setup() is a hint as to its function and use.
Lefty saysI agree that there is nothing to gain by putting user setup code into the bootloader space. The proper place for such functions is in the setup function of the sketch. But perhaps you could explain why you think it would be best to go with your idea?
but in case of watchdog timer?
Jack Christensen saysDepends on the usage, but if the bootloader were an obstacle, I might think it better to simply eliminate the bootloader.
Lefty saysOr find a copy of mega bootloader that has the WDT problem fixed. Sorry I can't locate it for you but it has been available for over a year now somewhere.