FATFS API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-06 9:47 PM
hi, i have the HAL driver for sd card and fatfs software module but i can't understand the mechanisms that both hal and fatfs api's, it's all confused me. stuck here unable to move forward.
@Community member​
@Community member​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-07 12:16 AM
Hi,
Take a look at the Fatfs application note: http://www.elm-chan.org/fsw/ff/doc/appnote.html
The Fatfs api provides you with the hight level functionality of the fat system- it doesnt care to what it is writing or reading. HAL API provides you with the low level api, allowing you to write/read data from the SD card controller.
Fatfs has an interface that has to be "married" with the HAL interface. The mechanism you are talking about connects the SD card access functions with the Fatfs module (by providing function pointers to disk_read, disk_write etc).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-07 1:17 AM
thank you:smiling_face_with_smiling_eyes: @Community member​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-07 6:32 AM
Where is your confusion
Block Storage Devices
File Systems (FAT, ISO9660, UDF, ..)
File Access (stdio)
File Data (data representation, byte data, structures, etc)
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-07 11:29 PM
To add to Lukasz's comment:
The HAL code is used by the higher-level FAT-FS code to physically access the device.
As user, you only need the FAT-FS API functions, and don't need the respective HAL code directly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-08 4:50 AM
Cross-post: http://www.keil.com/forum/63932/
As noted, FatFs is an independent 3rd-party product - nothing to do with ST.
As @Community member​ said, have you looked at the FatFs documentation?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-08 9:10 PM
@Andrew Neil​ which is right forum to ask my doubts about FATFS?
yeah, i did the cross-post because i do want to clear all my doubts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-09 4:04 AM
You still haven't told us what your doubts actually are!
Clearly, nobody can help you with those doubts when they don't know what they are!
Have you actually visited the FatFs site? Did you not notice that there is a forum there? Have you studied the FatFs documentation?
Fatfs must be the most widely-used free Filesystem on small microcontrollers - there are lods of tutorials an examples available on the interwebs.
How much research have you done?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-09 8:05 AM
I think "doubts" in this context is a lack of foundational knowledge about computer architecture, interfacing, and the ability to find, study and experiment independently. I'm not from a subservient teacher-student background, often teachers have a limited or tenuous grasp of the topic areas they are covering. Pull supporting documentation, examples and sources, and review in detail, independently. Review end-to-end, some detail will make more sense if you understand the whole, other issues may flag a need to study other topic areas so you have a foundation to make decisions yourself.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-09 9:40 PM
thanks you:smiling_face_with_smiling_eyes:
@Community member​
