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
Instructions for building and flashing Anduril 2 on Ubuntu 22.04
1. Install avrdude and other required stuff
Build and install avrdude 7:
https://budgetlightforum.com/comment/1873274#comment-1873274
https://github.com/avrdudes/avrdude/wiki/Building-AVRDUDE-for-Linux
The adapter by gchart works with easily with a Wurkkos TS10, Sofirn SP10 Pro, SC21 Pro, SC31 Pro (newer models).
Pinout:
https://budgetlightforum.com/comment/1867118#comment-1867118
https://budgetlightforum.com/comment/1872395#comment-1872395
Add attiny1616 support for avrdude:
Try this specific version:
http://packs.download.atmel.com/Atmel.ATtiny_DFP.1.10.348.atpack
I.e. Add the export to ~/.bashrc and then source ~/.bashrc
2. Get the latest firmware from gabe's branch of Anduril 2
3. Configure Anduril 2 for your particular torch
There are multiple cfg files.
Find one appropriate for your torch and edit it if you want to change the defaults or make changes.
4. Generate the hex files by making Anduril 2
5. Test the connection
Figure out what port the USB adapter is on:
The adapter is on /dev/ttyUSB0
Connect the 3 pins from gchart's adapter to a TS10 or SP10 Pro and test the connection:
6. Flash the firmware
Connect USB adapter with pogo pins to pads on the head of the flashlight.
Pay attention to the pad order. It could be R, -, + or +, -, R or something else.
Run one of the following:
Flash the TS10:
Flash the SP10 Pro: