![ST eMotion Скачать руководство пользователя страница 11](http://html.mh-extra.com/html/st/emotion/emotion_user-manual_1355657011.webp)
DocID017768 Rev 4
11/39
UM0979
eMotion board installation
39
2.2.1
DFU on Windows
To install the DFU software, launch the “DfuSe_Demo_V3.0_Setup.exe” included in the
software package under the “DFU” folder and follow the instructions on the screen. To
launch the software, select “Start > STMicroelectronics > DfuSe > DfuSe Demonstration”.
In the ‘Upgrade or Verify Action’ section of the Dfuse Demo tool click on the ‘Choose...’
button and select the target .dfu file; then click the ‘Upgrade’ button to start the firmware
upgrade.
For more details regarding DFU and the microcontroller ST GUI, see the related user
manual located under “Start > STMicroelectronics > DfuSe > Docs > DfuSe Getting Started”.
2.2.2
DFU on Linux
The DFU program used for Linux operating systems is ‘dfu-util’.
The procedure for Ubuntu Linux operating systems is described below.
To install this program, open a terminal and write the following command (with
sudo
to
ensure having the correct permissions):
sudo apt-get install dfu-util
Create a udev rules file:
sudo gedit /etc/udev/49-emotion.rules
and fill it with the following content:
# 0483:5740 - STM32F4 in USB Serial Mode (CN5) ATTRS{idVendor}=="0483",
ATTRS{idProduct}=="5740", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", ENV{MTP_NO_PROBE}="1"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740",
MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740",
MODE:="0666"
# 0483:df11 - STM32F4 in DFU mode (CN5) SUBSYSTEMS=="usb",
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666"
Tell udev to reload its rules:
sudo udevadm control --reload-rules
You should now be able to program the board. So, connect the eMotion board in DFU mode,
and run the following command:
sudo dfu-util -a 0 -D dfu_path/file.dfu -d 0483:df11
where
dfu_path
and
file.dfu
are the path to the dfu file and the dfu file name respectively
(example: sudo dfu-util -a 0 -D Desktop/eMotionV2_REL_4_0.dfu -d 0483:df11).