UM0722
11.4
Updating demonstration application in the demonstration kit
For the STM32 the DFU mode is entered after an MCU reset if:
●
The DFU mode is forced by the user: the user presses the key push-button during
a reset (while he is attaching the evaluation dongle to the USB).
●
There is no correct code available in the applicative area: before jumping to the
applicative code, the DFU code tests if there is a correct top-of-stack address in the first
address in the applicative area of the internal Flash memory (for the STM32F10xxx the
first applicative address is 0x0800 3000). This is done by reading the value of the first
applicative address and verifying if the MSB half-word is equal to 0x2000 (base
address of the RAM area in the STM32F10xxx).
Once the device is in the DFU mode, you can simply update main application with support of
tools coming from STM in DfuSe package. For further information, please refer to UM0412
"Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension"
user manual, available online from: www.st.com/mcu.
www.BDTIC.com/ST
Doc ID 15867 Rev 1
Demonstration kit software
29/46
Need help?
Do you have a question about the STM32 and is the answer not in the manual?