There are two methods to upload a firmware in the XRange module.
- Embedded DFU USB Bootloader
To run the embedded DFU USB bootloader – hold the the BOOT button ( it connects BOOT0 pin to the Vout), next reset the board with RESET button.
When the embedded boot loader runs your operation system will recognise the DFU device.
This video shows how to use the STM32 DFU bootloader
The current version 3.0.4 of DFU File Manager does not work correct, the previous version 3.0.3 works fine.
Connect the XRange module to the ST-Link.
Use the STM32 ST-LINK Utility to upload the firmware.
Apple and Linux users can use dfu-util to upload new firmware.
$ sudo port install dfu-util
Run bootlloader of XRange (with the boot/reset switches):
$ dfu-util –list (… this lists some devices.)
Flash your firmware:
$ dfu-util -d 0483:yyyy -a 0 -s 0x08000000 -D XRange-YourApp.bin the yyyy must be replaced by the numbers obtained from the listing.
[please, always add the option -d with the correct id’s! If not, you may overwrite your macbook trackpad firmware for example.]