2020-10-14 11:53 PM
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.
2020-10-15 08:48 AM
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
2020-10-15 09:03 AM
>>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.
2020-10-15 04:37 PM
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.
2020-10-15 05:11 PM
Hi,
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,