Skip to main content
RKage.2
Associate
April 18, 2021
Question

USB MSC in with Internal flash

  • April 18, 2021
  • 3 replies
  • 3444 views

There are many threads about using internal flash as MAss Storage in the USB Mass Storage Class, but non of them ever lead to anything.

Has anyone actually managed to get it working and is willing to share their code? I have scraped the internet for any info, but cant't find anything that actually works

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
April 18, 2021

Generally because it is slow and erase/write blocks real-time operation (USB). People who you expect to code a solution have made different choices.

Depending on the STM32 family/model the block size of the flash sectors is too large and inconsistent

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
RKage.2
RKage.2Author
Associate
April 18, 2021

Ok, but that still doesn't answer my question: is ist actually possible or am I wasting my time on something that isnt posssible at all?

If it is a good idea or the proper application is TBD.

Javier1
Principal
April 19, 2021

yup, it clearly says ram, my bad

hit me up in https://www.linkedin.com/in/javiermuñoz/
waclawek.jan
Super User
April 18, 2021

That's not the question you've asked. The answer to your original question is "probably no thus no", but that's hard to prove, given the size and nature of internet. Clive explained you, why the answer is probably no.

Answer to question "is it actually possible" is "probably yes".

JW

Pavel A.
Super User
April 18, 2021

Then, how the mbed updater works? It seems to write images directly to the target internal flash, and it does MSC ?

--pa

waclawek.jan
Super User
April 19, 2021

Yes, but there one mcu programs the other.

And I wrote "probably possible".

JW

Piranha
Principal III
April 20, 2021

Generally being USB MSC device doesn't mean it has to be with a "real" file system and store files. It can present some special data records, which show up as files, the tree structure can be static, files can be read-only etc. It definitely is possible!