Bootloading an Arduino Mega or Leonardo using alternative serial?

Hi,
I'm thinking of writing programs into the UART serial on Arduino Leonardo instead of builtin CDC serial on Leonardo to get rid of the if (!Serial) debug nightmare. Is it possible through changing the boot loader or simply burn Uno boot loader onto it?

Which leads me to another question. Just curious, is it possible to start boot loader on an alternative serial port than 0?

Thanks a lot.

I'm thinking of writing programs into the UART serial on Arduino Leonardo instead of builtin CDC serial on Leonardo to get rid of the if (!Serial) debug nightmare.

Please explain, what the debug nightmare is with this command sequence. I don't have nightmare because of it.

Is it possible through changing the boot loader or simply burn Uno boot loader onto it?

No, not without modifying it. I guess you could modify an optiboot loader to work with the ATmega32U4, but how do you want to upload the sketches then? Using a separate USB2serial converter? Do you know the necessary circuit to do so?

Which leads me to another question. Just curious, is it possible to start boot loader on an alternative serial port than 0?

You don't "start" a bootloader on some serial port but the code in the bootloader reacts on commands from a specific serial port a few moments after a reset. Do you really understand the concept of a bootloader?

Please explain what you want to achieve? Not how you want to achieve it.

Anything is possible with computers if you have enough time & money!

The Leonardo uses LUFA to achieve the USB and serial software interfaces. The 32U4 has the internal USB circuitry that LUFA manages. The bootloader code also provides the BIOS table such that the Arduino libraries "sees" serial as a physical interface and remaps the hardware serial to Serial1.

If you have too much time on your hands and want to modify the Leonardo boot loader, start with the LUFA's author blog:
http://fourwalledcubicle.com/blog/2012/08/lufa-and-the-arduino-leonardo/

Ray