Short answer
A bootloader is the small program that runs first when a unit powers up and manages software updates. If it stays intact even when the main software is damaged, the unit may be reprogrammed.
Detailed answer
When a unit powers up, the processor first runs this small software. It checks whether the main software is valid and, if so, hands over to it. Maker service updates are also often applied through this layer.
When a write stops midway, it is mostly thanks to the bootloader that a unit can still communicate. So damage to this area is much more serious than a general software error.
Some reading tools limit writes to protect this area. Going around these limits, or writing software from another unit to this area, can leave a unit unrecoverable.
Last updated: