I was thinking what would happen if a program for one MCU was programmed into another MCU via bootloader which doesn't check for device ID before bootloading.
I was thinking that it could cause physical damage such as setting input pins as output pins where they're in short circut wiring with VCC or GND.
I also thought what if it could write into the I/O registers to write lockbits or fusebits to disable the programming bit which would doom XMEGA to have to be unsoldered from its current board, soldered to a 12V MCU fixer (if one even exists and if it's not just for ATTinys), and then solder it back onto the previous board.
Is this really possible to do? Like, lock yourself out completely from XMEGA by software?