Hi,
I have Keil NCP LPC 1857 Eval Board and I'm trying to get the USB host working with NTFS.
Is there some easy way to get the USB Host example code working using USB memory that is formatted to NTFS?
Thanks!
"The Mass Storage Class (MSC) in the USB Host Component provides physical access to a data storage device. The USB MSC drive in the File System Component gives file I/O access to that data storage."
https://www.keil.com/pack/doc/mw/USB/html/group__usbh__msc_functions.html
So you need to look at the documentation for the File System Component :
https://www.keil.com/pack/doc/mw/FileSystem/html/index.html
So the answer is no, there is no easy way to get the NTFS working on USB.
Well, the answer is that it's not part of the MDK stuff.
So you'll need something 3rd-party.
Whether that is "easy" or not is another matter ...
When your question is resolved, please verify the answer:
Thought there would be some "easy" solution because the USB Device Mass Storage example works when using SD-card that has NTFS.
That's interesting, then!
Again, the USB MSC is beneath the File System - as is the SD Card. So take a look at how the SD Card example is done, and see if you can adapt that ...
You'll likely need to license a third party NTFS implementation, or review Microsoft documentation on the format, or Linux/OSS implementations thereof.
It is significantly more complex than FAT, especially if you want to write to it.
A File System is implemented on-top of the IO layer. You can read/write the sectors on the media.