Usb Dfu Bootloader Requests; Table 5. Dfu Class Requests - ST STM32F105 Series Application Note

System memory boot mode
Hide thumbs Also See for STM32F105 Series:
Table of Contents

Advertisement

DFU bootloader
Once System Memory boot mode is entered and the STM32F105xx and STM32F107xx
has been configured as described above, the bootloader code configures the USB and its
interrupts and waits for the "enumeration done" interrupt.
Once this interrupt is detected (A Host is present, has connected the device and
enumerated it), the system is configured in External Oscillator mode and the USB device is
re-initialized.
The device first tries the 25 MHz configuration, then, if it fails, the 14.7456 MHz
configuration, then, if it fails, the 8 MHz configuration. If it fails, this operation is repeated
with a large timeout value (the three configurations are re-tested). If the second trial also
fails, a system reset is then generated.
Note:
Independently of the initial USB cable status (plugged or unplugged) when the
STM32F105xx and STM32F107xx enters the Bootloader application, it configures the
USB. The enumeration is performed as soon as the USB cable is plugged (or immediately if
the cable is already plugged). If you do not want the STM32F105xx and STM32F107xx to
enter the USB DFU bootloader application, the USB cable has to be unplugged before reset.
4.2

USB DFU Bootloader requests

USB DFU Bootloader supports DFU protocol and requests compliant with the "Universal
Serial Bus Device Upgrade Specification for Device Firmware Upgrade" Version 1.1, Aug
5,2004. For more details concerning these requests refer to this specification document.
Table 5
and
Table 5.
DFU_DETACH
DFU_DNLOAD
DFU_UPLOAD
DFU_GETSTATUS
DFU_CLRSTATUS
DFU_GETSTATE
DFU_ABORT
68/83
Table 6
enumerate the DFU Class-Specific requests and their parameters.
DFU Class requests:
Request
0x00
0x01
0x02
0x03
0x04
0x05
0x06
Doc ID 14156 Rev 1
Request
Code
Requests the device to leave DFU mode and enter
the application.
Requests data transfer from Host to the device in
order to load them into device internal Flash.
Includes also erase commands.
Requests data transfer from device to Host in order
to load content of device internal Flash into a Host
file.
Requests device to send status report to the Host
(including status resulting from the last request
execution and the state the device will enter
immediately after this request).
Requests device to clear error status and move to
next step.
Requests the device to send only the state it will
enter immediately after this request.
Requests device to exit the current state/operation
and enter idle state immediately.
Request description
AN2662

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F105 Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Stm32f107 series

Table of Contents

Save PDF