Reading multiple files on MMC card FAT16

General discussion on mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
jaapvr
Posts: 15
Joined: 16 Apr 2007 07:34

Reading multiple files on MMC card FAT16

#1 Post by jaapvr » 04 May 2007 09:53

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]

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: Reading multiple files on MMC card FAT16

#2 Post by srdjan » 05 May 2007 13:28

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?
[/quote]
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.

jaapvr
Posts: 15
Joined: 16 Apr 2007 07:34

#3 Post by jaapvr » 07 May 2007 14:33

Thanks srdjan, will give the updates a try.

animaqx
Posts: 2
Joined: 07 May 2007 19:23

I really like those files too:)

#4 Post by animaqx » 07 May 2007 19:28

Hi, srdjan. Would you send me the updated beta-files for the MMC/SD routines. I would be very gratefull.---

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: I really like those files too:)

#5 Post by srdjan » 08 May 2007 07:31

animaqx wrote:Hi, srdjan. Would you send me the updated beta-files for the MMC/SD routines. I would be very gratefull.---
Done.

jaapvr
Posts: 15
Joined: 16 Apr 2007 07:34

multiple files

#6 Post by jaapvr » 08 May 2007 07:32

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!

MIG
Posts: 16
Joined: 28 Feb 2007 22:23
Location: Peru

I need those files too:)

#7 Post by MIG » 17 May 2007 19:52

Dear SRDJAN,
Please send me the MMC libraries.

Thanks.

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: I need those files too:)

#8 Post by srdjan » 18 May 2007 14:59

MIG wrote:Dear SRDJAN,
Please send me the MMC libraries.

Thanks.
Done.

PicnicPickle
Posts: 1
Joined: 21 Jun 2007 01:22

Request for updated MMC/SD (FAT) libraries.

#9 Post by PicnicPickle » 21 Jun 2007 01:40

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

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: Request for updated MMC/SD (FAT) libraries.

#10 Post by srdjan » 21 Jun 2007 09:03

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
Done.

dit
Posts: 8
Joined: 13 Dec 2010 20:46

Re: Reading multiple files on MMC card FAT16

#11 Post by dit » 06 Apr 2011 15:55

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

westsiderz
Posts: 21
Joined: 19 Oct 2010 17:41

Re: Reading multiple files on MMC card FAT16

#12 Post by westsiderz » 12 Mar 2012 22:50

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:

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 ;
}
and the program comes to execute it, it freezes and stop working at all. Please help! :cry:

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: Reading multiple files on MMC card FAT16

#13 Post by srdjan » 13 Mar 2012 13:57

Hi,
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:

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 ;
}
and the program comes to execute it, it freezes and stop working at all. Please help! :cry:
The libraries mentioned here are integrated in compilers a long time ago.
Did you properly initialize mmc card?
Send me small project (whole project folder) demonstrating this issue to srdjan@mikroe.com.

westsiderz
Posts: 21
Joined: 19 Oct 2010 17:41

Re: Reading multiple files on MMC card FAT16

#14 Post by westsiderz » 13 Mar 2012 21:06

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.

Post Reply

Return to “mikroBasic for dsPIC30/33 and PIC24 General”