Hi How can I access a file stored on USB ( NAND ) Flash Memory at the the "block(s)" and "pages" level . *block (s) and pages as in a filesystem. Like in a HDD we have a superblock and an inode table which provide us with the detail of the file storage on the media . And we can access these in our code using ioctl() , which is used to access the hardware directly . But since the flash memory is completely electronic , there is no read/write head . Infact here during read/write we can just flip a bit from 1 - > 0 and not vice versa , so to edit a certain block we would need to overwrite(reset) the entire block with 1's , and then flip the desired bits to zeros . I google about the USB internal architecture , but couldn't find more other than it has a microcontroller with DMA access to the NAND Flash memory .
If I am still unable to clearly explain my point then this should clear it ,A C Program to read through a file from blocks and pages as it is stored on the USB Flash drive . -- Best Regards Akash Gangil
