Jump to content

FatFs [not petit FatFs ] file system SD Card interfacing with cc3200 in energia

Recommended Posts


        I have used petit FatFs library in my project and it is working great but only problem is It can not create new file it only can modify already created file. But in my project I need to create many files on runtime. where can I ger FatFs SD Host library which I can use with energia. Thanks in advance 

Link to post
Share on other sites

You can download it directly from the author here: http://elm-chan.org/fsw/ff/00index_e.html


It will be compatible with energia, since energia just uses GCC to compile your sketches. However this method is not packaged as a library, so you will need to make changes to the lower level hardware driver to get it to connect with your SD card.


Also note this library takes up around 8kb of FLASH in it's minimal R/W configuration with directories. Enabling some extra features increases this size. You should be fine on the CC3200.


The link I posted has more detail, but you will need to implement your device control interface.

However if you've come from petietFS then you probably have most of these done.

disk_status - Get device status
disk_initialize - Initialize device
disk_read - Read sector(s)
disk_write - Write sector(s)
disk_ioctl - Control device dependent features
get_fattime - Get current time

The fatFS can just be added ontop of these and then you can make use of the API calls. fs_open/fs_read/fs_write etc.


I'm not sure if someone has packaged this up into a energia library yet. but it doesn't take long to get it working.


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...