- CPU
- MCS-51 (8051) compatible
sudo apt install sdcc sg3-utils
make
Assuming the drive is /dev/sda
sudo sg_raw -s 4096 /dev/sda ff 50 00 00 00 00 00 00 00 00 00 00 < firmware.bin
sudo sg_raw -r 512 /dev/sda ff e0 00 00 00 00 00 00 00 00 00 00
Now the flash drive's status LED will start blinking at fixed period. It will stop responding to USB. Replug the drive to get back to normal state.