Emisar D4V2 Flash Kit Instructions (Official How To)

The reflashing kits are for sale now.
https://intl-outdoor.com/emisar-d4v2-reflashing-kits-p-941.html

I’m not sure if we should offer the OTG adapter, if you already have the OTG adpater, please forget about it.

ok this time i need to learn how to flash :slight_smile:

im still using window 7 does it make much different? :open_mouth:

Wins7 does work, I have tested both Win7 and Win10, both work the same.
I recommend to use the phone to flash the firmware, much simpler.

Awesome!

Thank you,Hank. I just ordered mine. Many phones come with an OTG adapter, but it’s nice that you are offering these for those who misplaced theirs, or never had one.

Terry,
A good set of clear instructions. Most anyone should be able to follow.
Here’s a thought, Make a .BAT file that has the commands, along with the pauses for outputs to check for communication etc.
One for the Nichia and one for the rest.
Then it will be a no brainer for the PEBCAK challenged. The hardest part would be getting the driver installed.
BTY, heck of a soldering job on your homemade pin card. I would never got those darned pins on that card in line to work.
All the Best,
Jeff

Yes,with the app in the phone, the reflashing process is like a piece of cake.

haha, the last time I made a .BAT file, Ronald Reagon was president.

The soldering of the pins is really challenging, especially for the mass production.
We have finally managed to get it done with enough precision.

Before you hit “go” button, please make sure the pins are well in contact with the reflashing pads,
and hold your hand still in the reflashing process.
Well, even if you fail, not big deal, just try again. (I have tried to remove the pins in the reflashing process,
the light will not work anymore, but after reflashing again, the light will come back to normal)

This one could use a bat file… :smiley:

I have a long “to-do” list already, but I may be able to whip up a batch file for this when I’m working on the OSX instructions (maybe a .sh for Mac as well). I hope to get to this tonight or tomorrow morning.

Any special requests/words of caution on the batch file?

I would put in some pauses and prompts like “Press any key to flash” and “did it work? Y or N (press ”N” to retry)” etc

Hank's ordering page has the option: "Special discount (-$10)". Are we allowed to check that box?

“For the D4V2 owers with the muggle issue (mainly for the orders shipped before July 19), please choose the $10 discount, and leave your order number. If you have purchased the D4V2 from our dealers, you will enjoy the discount as well”

Thanks.

I have some screenshots and some notes for the Mac/OSX portion of the guide. I’m shooting for submitting the guide here tomorrow (I have to build a fence first, so it might be pretty late before they go up if I even make it by tomorrow), but it may be Sunday before I get around to it. I didn’t get my D4V2 or programming key in time to use it as an example, but after you get everything installed flashing is basically identical to the Windows avrdude portion.

A bash/batch script might follow as well, but I’m not sure how to make it foolproof (as one would want for an easy mode script). I could make it so that if placed in a folder with a single .hex file, it would flash that file (or flash the newest file). It might be better to list all the .hex files in the same folder, and prompt to pick one by number. It has been a while, so I’m a bit rusty and it might take me a while to remember how to do that. Could be fun though.

I’d think it should also run the command to check connectivity (avrdude -p t1634 -c usbasp -n), then present a prompt like “Was that successful? Press ‘y’ to begin flashing or press ‘n’ to retry”

Another thought to make this more universal, maybe there is a way get it to ask which MCU (t13, t85, t1634, etc) is connected and then issue the correct command automatically… I don’t know avrdude that well though.

Any thoughts on this from the community? Personally, I’d rather just type everything in or copy/paste… but it seemed there was some interest in a script to simplify things.

How to flash on OSX:

1. Install Xcode from the Mac App Store (6.1GB install, so be ready for a long download)

2. Open Xcode and accept the agreement, wait for it to finish “Installing components”, and then close it.

3. Install homebrew (this is a package manager for OSX, for more info see https://brew.sh)

  • open Terminal and paste this into it:

  • press “Return” and follow the prompts.
  • The install will tell you what it is about to do, then you will be asked to enter your password. Do so and then press “Return”.
  • Once finished, it will return you to the prompt (computername:~ username$)

4. Use Homebrew to install avrdude.

  • In the Terminal window, type:

  • Homebrew will download and install the necessary dependencies, then install avrdude
  • Once finished, it will return to the prompt.
  • To test our installs, run avrdude. Type

at the prompt and press “Return”

  • the last line before the prompt should tell you the version of avrdude

5. Now we are ready to flash!

  • In the terminal window, type:
  • Press “Return”. This will take you to the “Downloads” folder.

From this point on, the process is the same as with the Windows version above.

I may come back and edit this with screenshots of the flashing process after I get my D4V2 and my programming key… but avrdude on Windows, Linux, and OSX is basically the same.

Thanks for doing this, I posted a link to this post in my second reserved post.

FYI new firmware binaries were released today: Index of /torches/fsm

Looks like the first 'muggle fix' firmware update was released on July 18th. I wonder what's different on these new files?

Changelog can be viewed here