Custom USB storage based-on STM32F7.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-07 9:31 PM
Hi all,
I'm developing custom usb mass storage using stm32f746 + MT29F64G08CF MLC NAND. Can you show me low-level nand driver of Cube Firmware support for this NAND ? I can run usb mass storage using sdcard on stm32f7-disco. How to convert that projects for NAND ? Thanks very much. BR,- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-07 10:47 PM
Ok, so it has a 128KB erase block size, do you or other members of your team have experience with block devices, or file systems?
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-08 1:28 AM
Hi clive1
I'm sorry, this's first time my team do it. Can you show me what i must be to learn for this ? I had run OK usb mass storage stm32f7-disco example with sdcard. So what can i do for convert sdcard to nand ? I'm Vietnamese. STMicro have a support team in my country ? Thanks very much.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-08 2:56 AM
You need to manage the writing of one or more 512 byte sector into the 128KB block, ie reading, erasing, merging and writing back. You'd likely want caching and lazy writing to minimize repetition.
I don't work for ST, review their sales/support offices.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-08 3:08 AM
Can you share me document or example code about this ?
Thanks,- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-08 3:27 AM
Sorry, you'll have to use the resources available on the internet documenting NAND devices, and block storage device implementations.
At a minimum you should review how your SD Card MSC implementation accesses sector reads/writes, the use patterns, and then how you are going to map/deblock such writes onto a medium that has very large blocks which must be erased before being rewritten.The behaviour of NAND devices has been this way for a very long time, and is not unique to STM32 or F7 devices.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-08 9:25 PM
Hi clive1
Thanks for your attention. I was try sdcard but it's very slow speed (300kbps copy out and ~100kbps copy in). I things use sdcard slower NAND. What do you thing about this ?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-09 7:41 AM
I don't think that's an inherent speed constraint of a MicroSD/SDIO. On an F4 I can read cards at rates >10MBps. USB-FS would add it's own bandwidth limitations which would get you to 700-800KBps
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-12 11:00 AM
Hi clive1
How to remove that bandwidth limitations ? Can you share your project for me ? Thanks.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-12 12:06 PM
I have posted a number of F4 projects demonstrating SDIO+FATFS and SDIO+MSC, please review those threads. The search on the forum isn't that good, I'd use Google or Bing..
Write speeds on MicroSD cards is highly dependent on the specific make/model, and access patterns aligned to the physical geometry of the flash array.Up vote any posts that you find helpful, it shows what's working..
