Reading multiple files on MMC card FAT16
Reading multiple files on MMC card FAT16
I seem to have a problem reading a second file from the SD card. It opens the second file fine but when reading from the file, the data looks nothing like the actual data stored in the file. Must I close the first file before opening the second file? How many file handles are available in Mikrobasic? How do I close a file?
Hope someone out there is able to help me?[/quote]
Hope someone out there is able to help me?[/quote]
Re: Reading multiple files on MMC card FAT16
[/quote]jaapvr wrote:I seem to have a problem reading a second file from the SD card. It opens the second file fine but when reading from the file, the data looks nothing like the actual data stored in the file. Must I close the first file before opening the second file? How many file handles are available in Mikrobasic? How do I close a file?
Hope someone out there is able to help me?
Hi,
We are doing the revision of the mmc/sd library and it will be available with the next release. I will send you modified libraries to your mail. Please not that this is not a release version of the libraries. Any feedback would be appreciated. Thank you for your patience.
I really like those files too:)
Hi, srdjan. Would you send me the updated beta-files for the MMC/SD routines. I would be very gratefull.---
Re: I really like those files too:)
Done.animaqx wrote:Hi, srdjan. Would you send me the updated beta-files for the MMC/SD routines. I would be very gratefull.---
multiple files
Hi srdjan,
The updates you sent me have resolved the multiple file-read issue, thank you very much! Will be doing further mmc/sd card testing and let you know the results.
Thanks for the quick response!
The updates you sent me have resolved the multiple file-read issue, thank you very much! Will be doing further mmc/sd card testing and let you know the results.
Thanks for the quick response!
I need those files too:)
Dear SRDJAN,
Please send me the MMC libraries.
Thanks.
Please send me the MMC libraries.
Thanks.
Re: I need those files too:)
Done.MIG wrote:Dear SRDJAN,
Please send me the MMC libraries.
Thanks.
-
- Posts: 1
- Joined: 21 Jun 2007 01:22
Request for updated MMC/SD (FAT) libraries.
Dear mikroElektronika,
I would very much appreciate a copy of the updated MMC/SD (FAT) libraries for both:
mikroBasic for dsPIC30/33 and PIC24 v4.0.0.0,
and
mikroBasic v5.0.0.2,
as I am currently shuffling between two projects!
Yours sincerely,
PicnicPickle
I would very much appreciate a copy of the updated MMC/SD (FAT) libraries for both:
mikroBasic for dsPIC30/33 and PIC24 v4.0.0.0,
and
mikroBasic v5.0.0.2,
as I am currently shuffling between two projects!
Yours sincerely,
PicnicPickle
Re: Request for updated MMC/SD (FAT) libraries.
Done.PicnicPickle wrote:Dear mikroElektronika,
I would very much appreciate a copy of the updated MMC/SD (FAT) libraries for both:
mikroBasic for dsPIC30/33 and PIC24 v4.0.0.0,
and
mikroBasic v5.0.0.2,
as I am currently shuffling between two projects!
Yours sincerely,
PicnicPickle
Re: Reading multiple files on MMC card FAT16
Are these updates on the v3.8?
I decided to work with sector becase files libriry didn't work, but I'm still having troubles reading sectors http://www.mikroe.com/forum/viewtopic.php?f=97&t=30369
I decided to work with sector becase files libriry didn't work, but I'm still having troubles reading sectors http://www.mikroe.com/forum/viewtopic.php?f=97&t=30369
-
- Posts: 21
- Joined: 19 Oct 2010 17:41
Re: Reading multiple files on MMC card FAT16
Hi guys! Is the problem with that MMC_FAT library solved in MikroC 5.4? Becouse i still have problems trying to read file from MMC Card, while im using it as external source. When i add this code:
and the program comes to execute it, it freezes and stop working at all. Please help!
Code: Select all
Mmc_Fat_Assign("Notepad.txt",0);
Mmc_Fat_Reset(&size);
for (i=0;i<size;i++)
{
Mmc_Fat_Read(&chr);
temp[i]=chr ;
}
Re: Reading multiple files on MMC card FAT16
Hi,
Did you properly initialize mmc card?
Send me small project (whole project folder) demonstrating this issue to srdjan@mikroe.com.
The libraries mentioned here are integrated in compilers a long time ago.westsiderz wrote:Hi guys! Is the problem with that MMC_FAT library solved in MikroC 5.4? Becouse i still have problems trying to read file from MMC Card, while im using it as external source. When i add this code:
and the program comes to execute it, it freezes and stop working at all. Please help!Code: Select all
Mmc_Fat_Assign("Notepad.txt",0); Mmc_Fat_Reset(&size); for (i=0;i<size;i++) { Mmc_Fat_Read(&chr); temp[i]=chr ; }
Did you properly initialize mmc card?
Send me small project (whole project folder) demonstrating this issue to srdjan@mikroe.com.
-
- Posts: 21
- Joined: 19 Oct 2010 17:41
Re: Reading multiple files on MMC card FAT16
Im using MikroMMB for Pic24 and VisualTFT. In VisualTFT I chosed "externally" for sources. Becouse I saw that program is doing initializing automatically, I wrote the code I gave above straight. Do I have to Init it again. Im sending you the project via email.