I need to read and write bytes to a mass storage USB FLASH drive, but I dont want to use any file system, or files. I just want to have a blank unformatted USB flash drive, then start writing raw bytes to it using libUsb.
I read that mass storage can read and write raw bytes and its up to you to create your own file system like FAT etc using raw read/write USB commands.
However I dont want any file system, I just want to be able to command it to write a byte or read a byte from particular locations on the flash, and possibly get the size of the flash also.
Does anybody know how to do that, or know of any examples I can look at?
Please let me know if my question is not clear, or too broad, or not enough information, so I can rephrase or change the question all together.
Thanks very much!