Hello people.
I need to develop an application that creates a txt file in an USB mass storage (PEN DRIVE). I´m using a board based on uc STM32F427VG. The source code function is described bellow:
FILE *f;
f = fopen ("M:\\temp\\test.txt","w"); /* Create a file in subfolder on mass storage device.*/ if (f == NULL) { printf ("Failed to create a file!\n"); } else { // write data to file fclose (f); }
I configured the USB trought STM32CUBEMX in Pinout flip enabling USB DEVICE ==> Class for FS IP ==> Custom Human Interface Device Class and USB_OTG_FS ==> Mode ==> Device Only. I runed the firmware but I didn't obtain success. Can you help me to resolve this issue?
Best Regards