cancel
Showing results for 
Search instead for 
Did you mean: 

About Mass Storage

Goemon
Associate II

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.

4 REPLIES 4
chaaalyy
Senior II

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

>>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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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.

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,​