[Nucleo-F767ZI] USB Mass storage content does not update
Posted: Sun Aug 22, 2021 4:38 pm
Hy,
I am using an Nucleo-F767ZI with an SD card extension. Everything works smoothly, I run code from flash and use sd card as log memory, which is written by my python code and can be read out USB mass storage access as external drive from PC.
but the drive content of the USB mass storage does only update when I reset the python board.
I tried to .flush() the file after writing to it, I close the file with .close(), and I see the file and the content in python. But it does not show up in the mass storage device.
To replicate:
I am using an Nucleo-F767ZI with an SD card extension. Everything works smoothly, I run code from flash and use sd card as log memory, which is written by my python code and can be read out USB mass storage access as external drive from PC.
but the drive content of the USB mass storage does only update when I reset the python board.
I tried to .flush() the file after writing to it, I close the file with .close(), and I see the file and the content in python. But it does not show up in the mass storage device.
To replicate:
Code: Select all
f=open("/sd/log.txt", "wb")
testInt=0
while(testInt<100):
f.write("%i\n"%testInt)
testInt+=1
f.flush()
f.close()
os.listdir()
['System Volume Information', 'log.txt']