Skip to main content
Visitor II
August 20, 2020
Question

USB MSC SRAM is not working

  • August 20, 2020
  • 2 replies
  • 1235 views

I am using stm32f072rb discovery board... I want to use SRAM as mass storage... I am attaching the project... I am getting the memory on windows but on the format it shows an error like "windows is unable to format".

    This topic has been closed for replies.

    2 replies

    Graduate II
    August 21, 2020

    I'm not sure that 11 KB is enough for Windows to function.

    You might want to see if f_mkfs() can create an image for windows to recognize, or if that fails or refuses.

    If it is not the impractically small size that Windows objects to, it might be that the writes/reads in the format process fail in some way, or return the wrong/unexpected data.

    In debugging MSC the general rule would be to instrument the interactions, and to CRC data blocks so the logs can be audited and basic functionality validated. With relatively low block counts the CRC for all blocks could be sanity checked dynamically to catch issues.

    Visitor II
    August 22, 2020

    I don't understand your answer... Can you elaborate bit more or do you have any other option?