cancel
Showing results for 
Search instead for 
Did you mean: 

Question about implement USB MSC on STM32F207

lstfazz
Associate II
Posted on September 25, 2014 at 12:38

Hi all:

It's my first time working with MCU and got problem to implement USB MSC. I'm using the STM32F207 core and test with USB-Host-Device_Lib_V2.0.0, msc sample code.

After download the driver to my board, plug the USB cable. I got the ''usb device not recognized'' message from windows OS. I trace back the code, the usb interrupt is work and do reset and enumerate. But I don't capture the descriptor send from my board. I guess that's why the OS can't recognized my msc device.

 I'm confused that should I write my own code for descriptor and send it out, or there is something I miss to set with the sample code. Please give me a hint. 

#usb #stm32
4 REPLIES 4
Posted on September 25, 2014 at 15:11

You'd probably want to start with V2.1.0

What are you using as the storage medium? In my F2/F4 MSC's I've typically used an SDCard, but did build a RAM DISK version using the 8MB SDRAM on the STM32F429I-DISCO

First obvious things to check for would be correct crystal settings, defines, and PLL configurations.

ST has this annoying habit of using BYTE offset addressing for BLOCK devices, so you'll need to watch that.
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
lstfazz
Associate II
Posted on September 26, 2014 at 07:52

Dear sir:

Thanks for your prompt response. I would check the v.2.1.0 and software setting.

I would like to build my board as a SD card reader. 

Sincerely

Steam Lin

Posted on September 26, 2014 at 18:40

Ok, I've done this for the STM32F4-DISCO (and another F2 board of mine), the F4 and F2 are practically identical in this regard.

Posted info on wiring the MicroSD, and example MSC and FATFS code examples too.
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
lstfazz
Associate II
Posted on October 01, 2014 at 09:18

Dear Clive sir:

Thanks for your comment for my question. Now the board work. The root cause is the frequency setting just like you said. I change the HSE value to use the UART port, but do not change the PLL_M value. Thanks again.

Sincerely

Steam Lin