AnsweredAssumed Answered

Does STM32Fxxx DFU start always after reset if USB connected?

Question asked by vetter.doug on Aug 5, 2015
Latest reply on Aug 13, 2015 by vetter.doug
I'm building a system with two cards:

- a host card running a full OS
- a daughter card with a microcontroller (possibly the STM32F3xxx) running an RTOS

The goal is to have these cards send and receive data during normal operations via USB.  Thus, the USB connection will be continuously physically connected.

While researching how to update the firmware in flash on the ST part I discovered the DFU capability.  While reading AN3156, section 1, "Bootloader Code Sequence", I found the following statement:

"The USB 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 STM32 to enter the USB DFU bootloader application, the USB cable has to be unplugged before reset".

This seems to imply that if I have a USB cable attached and I reset the device the bootloader will always enter DFU mode.  Is that correct?

If so, is there a way to externally strap the device to prevent it from going into this mode unless I explicitly pull some pin(s) high or low when I actually want to update the firmware?