Hi,
I want to implement a USB module as V drive for pendrive where I can get commands through uart such as make directory ,open file etc and then dump the file onto pendrive. I am aware of how USB works, I want to know the feasibility of this project and a starting guide to how can it be achieved.
Regards Sanket
Thanks for the response. I am almost done with everything on file handling, but i am facing some issues with writing to files from command line. Before creating a file i have to check whether it is created or not. Once I get this info I write the text from the command line to the file. Now this is where i face the problem. Here I copy the arguments to temp buffer and then i use f_write function. Instead should I use f_printf function here will it work. Also if I want to write to a file in between how can i do this, I know i have to use lseek function but how.
My command would be something like this
wrf hello.txt hello all, this is fatfs world
any suggestions