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
Improved FAT16 library for MMC/SD cards
Re: Improved FAT16 library for MMC/SD cards
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
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
Re: Improved FAT16 library for MMC/SD cards
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
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
Re: Improved FAT16 library for MMC/SD cards
When will be this library availability to be released ?
Does this going to be supported by PIC18F4520 ?
Does this going to be supported by PIC18F4520 ?
Re: Improved FAT16 library for MMC/SD cards
Hi,
It is expected that these new routines will be included in the next release of the compiler.
Regards,
Filip.
It is expected that these new routines will be included in the next release of the compiler.
Regards,
Filip.
Re: Improved FAT16 library for MMC/SD cards
Hello linspire,
Yes, the library will be available on PIC18F4520.
However, please note that the new library has greater memory requirements.
Kind regards,
Milovan
Yes, the library will be available on PIC18F4520.
However, please note that the new library has greater memory requirements.
Kind regards,
Milovan
Re: Improved FAT16 library for MMC/SD cards
Hi there are some 16F has big RAM amount why the MMC_FAT16 dose not support these 16F chips?
Re: Improved FAT16 library for MMC/SD cards
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.
Some PIC16 devices support MMC FAT16 library, some not due to the memory limitations.
Which PIC16 device are you referring to exactly ?
Regards,
Filip.
Re: Improved FAT16 library for MMC/SD cards
i want to try use PIC 16F1527
Re: Improved FAT16 library for MMC/SD cards
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.
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.
Re: Improved FAT16 library for MMC/SD cards
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
Re: Improved FAT16 library for MMC/SD cards
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.
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.
- marina.petrovic
- Posts: 2986
- Joined: 18 Apr 2013 08:11
Re: Improved FAT16 library for MMC/SD cards
Hi,
I believe I already answered you.
http://www.mikroe.com/forum/viewtopic.p ... 96#p214296
Best regards,
Marina
I believe I already answered you.
http://www.mikroe.com/forum/viewtopic.p ... 96#p214296
Best regards,
Marina