cancel
Showing results for 
Search instead for 
Did you mean: 

Making internal FLASH as MSC

mentalmenza
Associate II
Posted on September 04, 2014 at 11:02

I download STM32CubeF4 from

http://www.st.com/web/en/catalog/tools/PF259243

. There is an example of MSC in 

\STM32Cube_FW_F4_V1.3.0\Projects\STM324xG_EVAL\Applications\USB_Device\MSC_Standalone\MDK-ARM.

If I build and download this example with USE_USB_FS definition, antivirus will start checking new disk. But Windows Explorer will not show new disk.

If I delete the body of int8_t STORAGE_IsReady(uint8_t lun) from usbd_storage.c and make it return zero, then Windows Explorer will show new disk, but can not oepn it, so it doesn't work as mass storage device.

How make internal FLASH as MSC using this example?

#msc #usb
2 REPLIES 2
Posted on September 04, 2014 at 15:35

Hi de.ab,

Concerning the STM32Cube_FW_F4_V1.3.0\Projects\STM324xG_EVAL\Applications\USB_Device\MSC_Standalone\MDK-ARM project, please ensure that jumpers JP16 and JP22 are in position 1-2 and Keep us informed about your finding.

Unfortunately there no available application based on STM32Cube solution making internal flash as MSC device, but you can find 

http://www.st.com/web/en/catalog/tools/PF258157

 an a StdLib based application on STM32F103 where the media storage device is not a uSD,

Hope that can help you.

Regards.

Posted on September 04, 2014 at 15:51

The flash sectors on the F2/F4 are impractically large and slow for them to be used in anything other than a read-only (CD/DVD, write protected FD/HD) application.

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