Skip to main content
Visitor II
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

    Graduate II
    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

    RKage.2Author
    Visitor II
    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.

    Graduate II
    April 19, 2021

    yup, it clearly says ram, my bad

    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

    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

    Super User
    April 19, 2021

    Yes, but there one mcu programs the other.

    And I wrote "probably possible".

    JW

    Graduate II
    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!