DFU Flashing

Some logs and hints about compiling, installing and using dfu-util on Ubuntu. Dfu-util is a free and open-source alternative for DFU enabled USB devices.

Dfu-util's homepage: http://dfu-util.gnumonks.org/

Seeed studio's dfu-util wiki page: http://www.seeedstudio.com/wiki/index.php?title=Dfu-util

Download and compile dfu-util (Ubuntu 12.04 LTS)
Or just use sudo apt-get install dfu-util. Make sure that you install at least version 0.7 (it seems that version 0.5 is not new enough). You can also download pre-compiled 0.7 .deb package from https://launchpad.net/~tormodvolden/+archive/ppa/+packages?field.series_filter=lucid

Udev rules for Linux

 * Edit /etc/udev/rules.d/90-ruuvi.rules
 * Reboot udev

Install on Mac OS X

 * Install MacPorts OR Homebrew
 * Install dfu-util:

Logs (trying to flash STM32F415RGT6) more to come...
Pull MCU's BOOT0 pin high, connect the USB cable and power up the device. Bootloader should recognize computer and enter to the USB DFU mode.

Dumps a binary from the microcontroller to a file.

Transfers a raw binary file from the computer to the microcontroller's flash memory (address 0x08000000). DFU file includes address information etc. but when the raw binary file is used, user needs to specify the correct address.