cancel
Showing results for 
Search instead for 
Did you mean: 

STM32VL discovery FAT drive

lac
Associate II
Posted on October 29, 2015 at 14:02

When I plugged the STM32VL discovery board in a PC, there will be a ''removable drive'' in the Computer, and there are some internet shortcut in it. The Win says that it is formatted to FAT, and the free space is about 30MB.

My question is that how it works? Where is this memory located in?

I'd like to create such a like this. I'd like to use VCP to control the STM32F4 discovery board, and i

n addition to

this I need a little memory (~1MB) to save data. The

easiest

way I though if I make a FAT drive in the MCU.
5 REPLIES 5
Posted on October 29, 2015 at 14:10

The ST-LINK on the VL-DISCO fakes a MSC by supplying a handful of carefully crafted sectors. It's not writable, and doesn't provide for 30MB of space.

I posted an MSC-SDRAMDISK example for the STM32F429I-DISCO

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
qwer.asdf
Senior
Posted on October 29, 2015 at 14:22

Here is another example, it supports only reading from a virtual fat filesystem, no writing mode.

https://github.com/fetisov/emfat

lac
Associate II
Posted on October 29, 2015 at 20:07

I realised that I'd have to create a RAMDISK in the MCU SRAM. I need writeable/readable disk.

Could it be possible to create such a thing?

Posted on October 29, 2015 at 20:52

Could it be possible to create such a thing?

The amount of SRAM in the F407 would make it rather small, but it's technically feasible.

If the question is will I write it for you, the answer to that is no.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
lac
Associate II
Posted on October 29, 2015 at 21:24

No, the question was not that, it was only

whether

it is possible.:) Thank you!