Jump to content

Flash firmware OS X


HH1
 Share

Recommended Posts

On MacOS:

  1. Get dfu-programmer from homebrew.
  2. Get hex file from github.  (Click on raw version, then wget the hyperlink.  Be sure to remember file path where it is saved.)
  3. Pull ducky out of machine.  Hold down button while putting back into machine.  No lights should be on, and it will not show up in finder.

Then run these commands in terminal in sequence:

sudo /usr/local/bin/dfu-programmer at32uc3b1256 dump >dump.bin
sudo /usr/local/bin/dfu-programmer at32uc3b1256 reset
sudo /usr/local/bin/dfu-programmer at32uc3b1256 erase
sudo /usr/local/bin/dfu-programmer at32uc3b1256 flash --suppress-bootloader-mem <.hex file path>
sudo /usr/local/bin/dfu-programmer at32uc3b1256 reset

Link to comment
Share on other sites

56 minutes ago, n3uron said:

On MacOS:

  1. Get dfu-programmer from homebrew.
  2. Get hex file from github.  (Click on raw version, then wget the hyperlink.  Be sure to remember file path where it is saved.)
  3. Pull ducky out of machine.  Hold down button while putting back into machine.  No lights should be on, and it will not show up in finder.

Then run these commands in terminal in sequence:

sudo /usr/local/bin/dfu-programmer at32uc3b1256 dump >dump.bin
sudo /usr/local/bin/dfu-programmer at32uc3b1256 reset
sudo /usr/local/bin/dfu-programmer at32uc3b1256 erase
sudo /usr/local/bin/dfu-programmer at32uc3b1256 flash --suppress-bootloader-mem <.hex file path>
sudo /usr/local/bin/dfu-programmer at32uc3b1256 reset

I'll try that

Thanks!

Link to comment
Share on other sites

  • 8 months later...

The sequence does not need the first reset, because it's not possible to follow the next step if you early reset (because reset stop dfu mode).

This is enough :

sudo /usr/local/bin/dfu-programmer at32uc3b1256 dump >dump.bin
sudo /usr/local/bin/dfu-programmer at32uc3b1256 erase
sudo /usr/local/bin/dfu-programmer at32uc3b1256 flash --suppress-bootloader-mem <.hex file path>
sudo /usr/local/bin/dfu-programmer at32uc3b1256 reset

  0
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...