Anduril flashing guides - Win10 and macOS

11 posts / 0 new
Last post
oweban
oweban's picture
Offline
Last seen: 1 year 10 months ago
Joined: 02/12/2019 - 06:34
Posts: 1263
Location: Sydney AU
Anduril flashing guides - Win10 and macOS

I’ve spent some time recently writing up guides to get your computer set up to flash Anduril, what’s required, and the steps involved.

These guides cover getting the software installed that you will need, getting the latest .hex files, and the commands to run to flash them. What I haven’t included is where to buy the hardware, as this can be difficult to recommend sellers.

Things you will need:

  • USBASP
  • SOIC8 clip (for Attiny13/25/85-based lights)
  • Dupont cables (to join the USBASP and the SOIC8 clip)

If you have an Emisar/Noctigon light, the flashing kit that will work on a D4V2/D4SV2/K1/KR1/KR4 is available here

The guides are available here:

Windows 10
macOS

Please feel free to add comments/suggestions – I’m open to updating the guides and/or this post.

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 5 days 4 hours ago
Joined: 01/12/2013 - 14:40
Posts: 10896
Location: (469219) 2016 HO3 // I get way more privmsgs than I can respond to, so please ask in a public thread if possible, for a faster answer.

Thanks!

I added a link to this in the repository’s README file.

2A
Offline
Last seen: 1 year 7 months ago
Joined: 05/18/2020 - 09:57
Posts: 569
Location: quarantained

thanks. anybody know why I need sudo for avrdude on Linux? or am I doing it wrong?

oweban
oweban's picture
Offline
Last seen: 1 year 10 months ago
Joined: 02/12/2019 - 06:34
Posts: 1263
Location: Sydney AU

My guess is that because it’s directly accessing a /dev/ , it needs elevated permissions. I’m having the same thing when doing some GPIO things on Pi.

2A
Offline
Last seen: 1 year 7 months ago
Joined: 05/18/2020 - 09:57
Posts: 569
Location: quarantained

makes sense – thank you!

the .pdfs are very organized and clean.

contactcr
Offline
Last seen: 2 hours 19 min ago
Joined: 05/19/2017 - 18:52
Posts: 3720
Location: US

This is pretty specific to Emisar product line (I would change “Terminal” in your guide to “Command Prompt” for Windows)

If you are flashing with a clip on mcu directly then you add some more steps like:

  • reposition clip
  • test
  • reposition clip
  • test
  • reposition clip
  • test
  • clean clip with alcohol
  • test
  • recheck jumper wires
  • test
  • clean mcu pins
  • test
  • change jumper on USBASP from 5v to 3.3v or vice versa
  • test
  • change jumper on USBASP back to what you had before
  • reposition clip
  • test succeeded
  • hold your breath while you wait for flash progress
oweban
oweban's picture
Offline
Last seen: 1 year 10 months ago
Joined: 02/12/2019 - 06:34
Posts: 1263
Location: Sydney AU

Ah thank you! I’ll fix it today.

And yes haha, I know that pain. I ended up using cables from USB headers for a PC case to make my cables, and removed a pin from the usbasp so it only goes in one way.

wolfstyle
Offline
Last seen: 15 hours 32 min ago
Joined: 06/19/2015 - 11:31
Posts: 165
Location: Ohio

Thanks for providing these guides. I just was able to flash my d4v2 using my mac.

One question, after flashing I did a firmware check on the light by clicking 15 times. It reported back today’s date: 2020 07 08. Is that correct?

contactcr
Offline
Last seen: 2 hours 19 min ago
Joined: 05/19/2017 - 18:52
Posts: 3720
Location: US

wolfstyle wrote:
Thanks for providing these guides. I just was able to flash my d4v2 using my mac.

One question, after flashing I did a firmware check on the light by clicking 15 times. It reported back today’s date: 2020 07 08. Is that correct?

Yes when you compile it puts in today’s date or you can set it yourself in version.h – I like to set it to the date from the source build though

Edit: after rereading your comment nothing implied you compiled it yourself. If you didn’t I don’t know why that is

brewster
Offline
Last seen: 4 months 1 week ago
Joined: 07/19/2019 - 23:29
Posts: 80
Location: Australia

I reported earlier a different method for MacOS that requires much less material to be downloaded and is closer to a regular Mac package install. It has worked fine for flashing the BLF Q8 as well as a range of Emisars.

http://budgetlightforum.com/comment/1544964#comment-1544964

A possible downside of this approach is that the package is not maintained, so the method might be undone by future OS updates or MCU versions. I give details of my environment in that earlier post.

Edit: I should add that this simple method is aimed at those users who want to install a given hex file, not those who want to edit the source code and compile their own hex.

oweban
oweban's picture
Offline
Last seen: 1 year 10 months ago
Joined: 02/12/2019 - 06:34
Posts: 1263
Location: Sydney AU

Fair call; there’s definitely always more ways to do things. I just wrote up a way that works for me and I could screenshot well Smile