User Manual

feather_dfu.py
This python tool is used by the Arduino IDE to perform common operations like resetting into DFU mode, updating the
flash contents of the MCU, performing a factory reset, or getting some basic information about the modules.
While the tool is intended to be used by the Arduino IDE, you are also free to use this tool from the command line.
Location: /tools/feather_dfu/feather_dfu.py
Commands
feather_dfu.py exposes the following commands:
arduino_upgrade
This command will flash your user code (the code compiled in the Arduino IDE) to the appropriate section in flash
memory.
You must provide a .bin file as an argument with this command, for example:
featherlib_upgrade
This command will flash the FeatherLib section of flash memory.
You must provide an appropriate .bin file as an argument with this command, for example:
enter_dfu
Causes the WICED Feather to enter DFU mode. You will know if you are in the special DFU/Bootloader mode because
the LED will blinky at a faster than normal rate.
WINDOWS USERS: Recent versions of the BSP include a pre-compiled version of feather_dfu for Windows. If
you are using Windows as a platform, look in the 'tools/win32-x86/feather_dfu' folder for the executable file
to use.
On Windows, the BSP package that contains the tools folder is normally found in the
'%APPDATA%\Local\Arduino15\packages\adafruit\hardware\wiced\0.6.0' folder. On OS X it can usually be
found in the '~/Library/Arduino15/packages/adafruit/hardware/wiced/0.6.0' folder..
'feather_dfu.py' depends on 'sdep.py' in the same directory, which handles sending SDEP commands over
USB. If you wish to talk to the WICED Feather over USB using SDEP commands, this may be a useful
reference to look at.
$ python feather_dfu.py arduino_upgrade mycode.bin
$ python feather_dfu.py featherlib_upgrade ../../stm32/featherlib/featherlib.bin
© Adafruit Industries https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi Page 168 of 202