To setup the WICED Feather on OS X, the following steps are necessary:
Install dfu-util
The WICED Feather uses USB DFU to perform firmware updates from the Arduino IDE. To enable to Arduino IDE to talk to the board you will need to install dfu-util.
The easiest way to install dfu-util is to use homebrew, which can be installed with the following command if it doesn't already exist on your system:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Once homebrew is installed you can install dfu-util from the command line with the following command:
brew install dfu-util
Testing the Installation
You can check if dfu-util was installed correctly by running the following command with the WICED Feather connected:
dfu-util --list
This should give you results resembling the following output:
dfu-util 0.8 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2014 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to [email protected] Deducing device DFU version from functional descriptor length Found DFU: [239a:0008] ver=0200, devnum=12, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/02*016Ka,02*016Kg,01*064Kg,07*128Kg", serial="00000000001C"
Install Python Tools
The WICED Feather BSP uses a few Python based tools (see the tools/ folder for details).
To use these Python tools, you will need to have Python available on your system (which OS X does by default), but you will also need a few additional libraries to make the Python scripts work.
You will also need the pip utility if it is not already on your system.
Running the following command from the command line will install these dependencies:
# On versions of OS X from 10.11.5 onward run ... sudo pip install pyusb sudo pip install click # On versions of 0S X before 10.11.5 run ... sudo pip install --pre pyusb sudo pip install click
Testing the Installation
You can test if Python is setup correctly by going to the '/tools/source' folder in the WICED Feather BSP and running the following command with the WICED Feather connected:
cd tools/source/feather_dfu python feather_dfu.py info
This should display something resembling the following output:
Feather ST32F205RGY 353231313533470E00420037 FF:FF:FF:FF:FF:FF 1.0.0 3.5.2 0.5.0 0.5.0 Mar 8 2016
Optional: Install AdaLink
If you ever need to reflash the USB DFU bootloader on the WICED Feather (which will require either a Segger J-Link or an STLink/V2), you will also need to install a utility called AdaLink.
AdaLink acts as a simple python-based abstraction layer between various HW debuggers, and the different ARM MCU families that we use at Adafruit.
For installation instructions on AdaLink see the Readme file in the git repository.
Text editor powered by tinymce.