Running feature changes available in CHANGELOG
The base branch is up-to-date as of Rev 642 (2021-12-13) in open source.
I've put the hex files and basic scripts for AVRDude for this Anduril 2 fork in the hex_files directory.
If you're looking for the open source Anduril 2 hex files (current as of 2021/11/29), they're in the open_source_hex_files directory.
If you're on a Mac or Linux and use Homebrew:
brew install avrdude
using your flash kit, while holding the pogo-pins to the head of your light:
- run
flash_test.shto verify communication with the light. - run
flash_light.sh -hto see specific lights with shortcuts to use with-l, or-fto point to a specific file.
If you're on a Mac or Linux and use Homebrew:
brew tap osx-cross/avrbrew install avr-gcc(only if you plan to make your own changes)
make your changes in /flashlight-firmware/anduril2/ToyKeeper/spaghetti-monster/anduril
run build-all.sh. This will generate .hex files for you, which you can then flash to your light.
from the hex_files directory, run flash_move_hex.sh to move them into the hex_files directory if you wish.
If you want to use the CLI I wrote to simplify this process:
- make code changes in
/flashlight-firmware/anduril2/ToyKeeper/spaghetti-monster/anduril - run
code/flash_build.sh. This will create your hex files and move them to thehex_filesdirectory. - if you have a D4V2, D4SV2, KR4, or KR1, you can use
hex_files/flash_light.sh -hto find the light in that list, and build it by runningflash_light.sh -l <option>. If not, useflash_light.sh -f <filename>.
(using flash_light.sh -l with the appropriate light will select the right hex file for you)
- use
noctigon-kr4-nofet.hexfor KR1, anything with a E21A LEDs. - use
noctigon-kr4.hexfor a D4V2 using a KR4 driver. - using
flash_light.sh -fis currently hard-coded to use-p t1634, which works with Emisar/Noctigon lights, but possibly not others. You may need to adjust this for your own purposes.
- https://budgetlightforum.com/node/68263 for how to flash
- Emisar/Noctigon reflashing kit: https://intl-outdoor.com/reflashing-kits.html
- Anduril 2 open source hex files from ToyKeeper (including
anduril-manual.txt): http://toykeeper.net/torches/fsm/anduril2/ - Anduril 2 source code: https://launchpad.net/flashlight-firmware