Improved FAT16 library for MMC/SD cards

Discuss with MikroElektronika software developers about current library development.
Post Reply
Author
Message
User avatar
MiloVan
Posts: 16
Joined: 04 Aug 2011 07:46

Improved FAT16 library for MMC/SD cards

#1 Post by MiloVan » 04 Aug 2011 10:33

Hi everyone,

As part of developer-user interaction, from this point users will take more active roll in library development through direct communication with developers. And as a part of this strategy, I am to present new features of FAT16 library for MMC/SD cards, which will be introduced in the following compiler releases. This library is already in it's finishing stages so no additional features will be implemented for this release. However, users are welcomed and encouraged to post their requests and suggestions for features they consider important, as we will consider them seriously for future revisions.

MMC FAT16 Library, New Features:

Support for directory management has been added, as well as some additional functions for file handling.

As for directory management, we have functions that allow:
1) directory creation
2) directory removal
3) change of current directory (a.k.a. "cd" DOS command)
4) directory existence check
5) directory rename
6) display of contents of current directory (a.k.a. "dir" DOS command)

As for file handling, we have new functions that allow:
1) file rename
2) getting and
3) setting current cursor position within a file
4) file existence check (the same function as directory existence check)

Please, feel free to ask anything about these improvements, and if there is some feature you would like to see in the future library, please let me know. I cannot promise its implementation as I have no such authority, but I promise it will be given careful consideration.

As for our future plans for this library, addition of recursive search for files/directories is considered. As ever, we are open for suggestions, so your ideas will be appreciated and welcomed.

Yours truly,
MikroE

vojinilic
Posts: 14
Joined: 08 Jul 2011 18:54

Re: Improved FAT16 library for MMC/SD cards

#2 Post by vojinilic » 29 Aug 2011 11:40

Hi,

is there possibility to delete a part of the file with new FAT16 library? For example I want to delete middle 100 bytes of the file.

Best regards,
Vojin

User avatar
MiloVan
Posts: 16
Joined: 04 Aug 2011 07:46

Re: Improved FAT16 library for MMC/SD cards

#3 Post by MiloVan » 31 Aug 2011 09:05

Hi Vojin,

There is no dedicated function to handle your request - which is quite in place in my opinion - but there is a workaround.
You could create entirely new file (don't forget to name it differently!), and copy the contents of the original into it's copy except for those 100 bytes.
After that you should be able to delete the original file and rename the copy.
Now I realize there is some overhead in this (especially in large files), however until it properly handled I don't see a more elegant solution.

Cheers,
MikroE

linspire
Posts: 20
Joined: 03 Sep 2011 08:31

Re: Improved FAT16 library for MMC/SD cards

#4 Post by linspire » 18 Sep 2011 15:41

When will be this library availability to be released ?
Does this going to be supported by PIC18F4520 ?

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Improved FAT16 library for MMC/SD cards

#5 Post by filip » 19 Sep 2011 08:58

Hi,

It is expected that these new routines will be included in the next release of the compiler.

Regards,
Filip.

User avatar
MiloVan
Posts: 16
Joined: 04 Aug 2011 07:46

Re: Improved FAT16 library for MMC/SD cards

#6 Post by MiloVan » 21 Sep 2011 09:28

Hello linspire,

Yes, the library will be available on PIC18F4520.
However, please note that the new library has greater memory requirements.

Kind regards,
Milovan

Aoday
Posts: 86
Joined: 07 Mar 2005 13:45

Re: Improved FAT16 library for MMC/SD cards

#7 Post by Aoday » 10 May 2012 17:13

Hi there are some 16F has big RAM amount why the MMC_FAT16 dose not support these 16F chips?

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Improved FAT16 library for MMC/SD cards

#8 Post by filip » 11 May 2012 12:28

Hi,

Some PIC16 devices support MMC FAT16 library, some not due to the memory limitations.
Which PIC16 device are you referring to exactly ?

Regards,
Filip.

Aoday
Posts: 86
Joined: 07 Mar 2005 13:45

Re: Improved FAT16 library for MMC/SD cards

#9 Post by Aoday » 12 May 2012 10:23

i want to try use PIC 16F1527

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Improved FAT16 library for MMC/SD cards

#10 Post by filip » 14 May 2012 09:51

Hi,

I am sorry, I made a mistake regarding support of the MMC FAT16 library in the PIC16 family.
Apparently, none of the PIC16 MCUs support this library due to the PIC16 family restrictions.

As for the enhanced PIC16 family, I will have to consult our developers.

Regards,
Filip.

Aoday
Posts: 86
Joined: 07 Mar 2005 13:45

Re: Improved FAT16 library for MMC/SD cards

#11 Post by Aoday » 14 May 2012 14:57

thanks Filip yes i have noticed that most of the enhanced PIC16 family can support MMC and MMC FAT16 library as i know previously all PIC16 family dont have have enough RAM to support the one sector 512 byte to transfere

juliozv
Posts: 20
Joined: 07 Nov 2010 18:28
Location: Mexico
Contact:

Re: Improved FAT16 library for MMC/SD cards

#12 Post by juliozv » 20 May 2013 18:05

Hi,

I read the Mmc_Fat library but I don't understand well the next routine:

Mmc_Fat_Assing( filename , file_cre_attr)

in the part the "file_cre_attr" how is the configuraion of bits? in the example of mikroE has 0xA0 but I don't understand where this value.

thanks for your time..
JulioZV

PD. sorry for my english.

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: Improved FAT16 library for MMC/SD cards

#13 Post by marina.petrovic » 21 May 2013 11:10

Hi,

I believe I already answered you.
http://www.mikroe.com/forum/viewtopic.p ... 96#p214296

Best regards,
Marina

Post Reply

Return to “Library Development Discussion”