cancel
Showing results for 
Search instead for 
Did you mean: 

USB mass storage in RAM

brakchus
Associate II
Posted on September 01, 2013 at 14:05

Dear All,

I'm working on use RAM memory from STM32F205 on mz custom PCB to run code from STM32_USB-Host-Device_Lib_V2.1.0 under Iar workbench. From mass storage device example workspace I removed all board specific calls lik LCD logger and SD card and changed them to write/read from my uin8_t usbDisk[0x1000] buffer placed in RAM. I can see that device is connected in device manager Win7 without any yellow marks, but when the OS wants to format removable device I got ''Windows was unable to complete the format''. I can see that some SCSI commands are invoked like: SCSI_INQUIRY, SCSI_READ_FORMAT_CAPACITIES, SCSI_READ10, SCSI_MODE_SENSE6 and after device is detected in OS SCSI_TEST_UNIT_READY command is regular called.

You can see my changes in usbd_storage_msd.c file attached.

Best regards,

John

#stm32f2-usb-mass-storage
16 REPLIES 16
Posted on June 08, 2018 at 16:09

I did not find a MSC SDRAM-DISK example for the STM32F429I-DISCO from 2015 anywhere.

Roman Marjamaa

Marjamaa Engineering Inc.

395 Co Rd 110 N

Mound, MN 55364

Direct: (612) 999-8263

Mobile: (612) 345-1492

Fax: (855) 627-5364

www.marjamaaengineering.com<http://www.marjamaaengineering.com/>;

All information contained in this email is to be treated as “confidential�? or “proprietary�? and shall not be shared

outside the terms of the Agreement between Marjamaa Engineering Inc. and the Recipients of this email.

Posted on June 08, 2018 at 18:23

https://community.st.com/0D50X00009XkgpRSAR

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 08, 2018 at 18:55

Thanks,

Roman Marjamaa

Marjamaa Engineering Inc.

395 Co Rd 110 N

Mound, MN 55364

Direct: (612) 999-8263

Mobile: (612) 345-1492

Fax: (855) 627-5364

www.marjamaaengineering.com<http://www.marjamaaengineering.com/>;

All information contained in this email is to be treated as “confidential�? or “proprietary�? and shall not be shared

outside the terms of the Agreement between Marjamaa Engineering Inc. and the Recipients of this email.

Hallo Clieve 2.0,

could you please repost this link to your example? Its broken again...

thanks a lot

Please have @brk​ dig it out of the archive of broken forums past..

It would have been F4 SPL code from 5 or more years ago.

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

@Community member​ I am using stm32f072rb discovery board... and I allocated 10 and tried also with 11kb ... It is showing 11kb in windows but error comes that widows is unable to format disk.. can you help me?