Skip to main content
Visitor II
October 15, 2020
Question

About Mass Storage

  • October 15, 2020
  • 2 replies
  • 1180 views

Hi, all.​

I am making a USB MASS STORAGE program.

It is recognized by Windows10 and can be used as a drive after formatting.

I was able to copy the file and open it correctly.

However, when I reset the NUCLEO board, windows prompts me to format it again.

I don't know Why?

I use NUCLEO-F767ZI board, and MT25QL128 FLASH (QSPI mode).

Thank you in advance.

    This topic has been closed for replies.

    2 replies

    Graduate
    October 15, 2020

    Just an idea: Maybe you use RAM or SD-Ram instead of Flash as storage ? Then, of course, the contents are lost after powering down ...

    /Charly

    GoemonAuthor
    Visitor II
    October 15, 2020

    Hi,

    I tried the method using RAM. It worked fine.

    But if you turn off the power, your data will be lost. You're right.

    Thank you your help.

    Graduate II
    October 15, 2020

    >>I don't know Why?

    Then you're going to need to fish into the ether and figure it out.

    Most likely is that it is not reading back what has been written properly.

    Instrument the code, perhaps indicating the sectors read/written, along with a CRC of the blocks, and see if there is some consistency.

    Going to keep failing if the basic job of a block storage system isn't working.

    GoemonAuthor
    Visitor II
    October 16, 2020

    0693W000004JyeyQAC.jpgHi,

    Thank you your help.

    I tested it with a simple program to see the basic reads and writes.

    After writing the data to FLASH, when I compared it with the read data, they all matched.

    So I think both writing and reading are working properly.

    However, it will fail unless the clock rate is lowered.

    Is there a hardware problem?

    Best Regards,​