Bootloader should work. But this may require a two-way communication.