Retargetable flasher for ARM microcontrollers