Ubuntu 18.04
These are personal notes for flashing an Emisar D4V2 Ti with a KR4 nofet driver using E21A emitters.
anduril.noctigon-kr4-nofet.hex will be used.Caution:
- You could brick your D4V2 if the pogo pin adapter from intl-outdoors isn't aligned properly. I bricked my D4V2 Sand.
- Don't install the wrong firmware (e.g. anduril.emisar-d4v2.hex on a D4V2 Ti with a KR4 nofet driver) or you may destroy the emitters.
- Install avrdude and other required stuff
sudo apt-get install flex byacc bison gcc libusb-dev libc6-dev
sudo apt-get install gcc-avr avr-libc binutils-avr
sudo apt-get install avrdude avrdude-doc
-
Get the latest firmware
Go to https://code.launchpad.net/~toykeeper/flashlight-firmware/fsm
Under Recent Revisions, click the latest version
Click download tarball -
Extract the firmware to ~/fsm
cd Downloads
tar xzvf \~toykeeper_flashlight-firmware_fsm-r490.tgz
cd \~toykeeper/flashlight-firmware/
mv fsm ~/.
- Make hex files
cd ~/fsm/ToyKeeper/spaghetti-monster/anduril
make
- Test connection
Connect usbasp device with pogo pins to pads on the head of the flashlight.
And then run:
sudo avrdude -c usbasp -p t1634 -n
- Flash the firmware
Connect usbasp device with pogo pins to pads on the head of the flashlight.
And then run while holding pins for 15-30 seconds:
sudo avrdude -c usbasp -p t1634 -u -Uflash:w:anduril.noctigon-kr4-nofet.hex