cancel
Showing results for 
Search instead for 
Did you mean: 

USB Composite Device for DFU

gregoire
Associate II
Posted on May 18, 2012 at 14:37

Hi everyone,

I m trying to be in USB Mass storage Mode by default, and being able to do DFU action upload and download.

I read that I have to disable all other interface to get in DFU mode.

Thus, I wanted to use DFUSE to send a detach request which may get me in DFU mode.

However when I am in MSD mode I can t deal with the ST DFUSE application. 

(Even though ST provide the run time DFU interface in their MSD example)

I thought one possibility could be to implement a composite Device.

I would have to load both extern drive and DFUSE drivers.

Does anyone has an idea about how to do so?

I played separately with both MSD and DFU ST's example, successfully.

I think, I can start from the MSD example.

I have to set the DFUSE VID PID for my descriptor.

Then modify the DFUSE inf file to add the MSD VID\PID

And set the enumeration to get in MSD state by default.

What would be your suggestions please?

Thanks in advance, 🙂

Greg

PS working with Eclipse Indigo, STM32F2xx.
1 REPLY 1
harinath
Associate III
Posted on May 19, 2012 at 04:36

I point you an firmware source, which has DFU firmware source, but the application is not MSD. However what you are asking is there. The device in application mode can enter into DFU mode. So you can inspect that part to know how to enter into Software DFU mode.

http://www.st.com/internet/evalboard/product/250367.jsp

Download the firmware sources in resources section there.

Forgive me if you already seen & inspected this.

Harinath