Example program of using USB mass storage device (USB flash disk) with STM32F407VET6 boards (compatible with Seed Arch Max). This is a fork of https://os.mbed.com/users/va009039/code/F401RE-USBHostMSD_HelloWorld/
Dependencies: mbed FATFileSystem USBHost-STM32F4
Diff: main.cpp
- Revision:
- 2:c44e11315bd3
- Parent:
- 1:f1ba83d3df51
--- a/main.cpp Thu Nov 14 16:08:09 2019 +0000 +++ b/main.cpp Fri Nov 15 15:15:04 2019 +0000 @@ -45,7 +45,7 @@ //fprintf(fp, "\n"); fclose(fp); } - fp = fopen("/usb/kvar.txt", "a"); + fp = fopen("/usb/kvar.txt", "w+"); if (fp) { //fprintf(fp, "%i", bkvar);