cancel
Showing results for 
Search instead for 
Did you mean: 

Entering DFU Mode within Application

osama
Associate II
Posted on November 15, 2013 at 15:54

Hi,

I have an application in which I want to enter the DFU mode using the software only. The device is in HID mode and after some external input it should enter the DFU mode. The present example by ST requires to place jumpers between VDD and BOOT0 pins and GND and PB2 pins and after that a restart is required. Is there a possible way to not do this and still enter the DFU mode using the software only ?

Regards

#dfu #dfu-se
5 REPLIES 5
Posted on November 15, 2013 at 16:32

Is there a possible way to not do this and still enter the DFU mode using the software only?

Yes, how depends on the part

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
osama
Associate II
Posted on November 15, 2013 at 19:01

I have implemented the DFU device descriptor and initialized it properly but when I switch the to the dfu mode the windows detects it as in DFU mode but not properly (yellow icon appears in device manager).

osama
Associate II
Posted on November 20, 2013 at 11:26

I have looked corrected the problem of PC not detecting the device in DFU mode by changing the USB VID and PID to that provided in the example. Now everything works correctly and the DFUse detects the device correctly but when I try to update the code nothing happens, DFUse shows that it has completed updating the target file on the board but when I restart the board my original application is still running in the board. Any idea what am I missing here ?

tpoms9
Associate II
Posted on September 25, 2014 at 16:15

Hello!

Can you provide some code or further information?

I'm using the STM32F401 in CDC mode and want to enter DFU without setting the boot pins.

Posted on September 25, 2014 at 17:27

This is a recurring theme, I've covered it before, start with [DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/jumping%20to%20the%20bootloader%20via%20software%20does%20not%20permit%20dfu%20mode&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&currentviews=162]this thread (which I randomly Googled as the search here is awful) and look at some of the others I cited.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..