MMC SD LIB that handles more than 512 bytes per sector

Post your requests and ideas on the future development of mikroPascal.
Post Reply
Author
Message
galea.dk
Posts: 3
Joined: 30 Jan 2006 23:24
Contact:

MMC SD LIB that handles more than 512 bytes per sector

#1 Post by galea.dk » 30 Jan 2006 23:52

Using MMC SD cards with 256Mb formatted in FAT16 gives a sectorsize of 4096 bytes...

sdlib.ppas handles only 512 bytes per sector!

Will there be an upgrade (or sourcecode) included in next release?
(It is possible to do it using software and direct IO, but it would be nice to have in the build in library....)

Regards
an otherwise :lol: "happy" mikroe coder....

anton
Posts: 807
Joined: 23 Sep 2004 09:16
Location: South-Africa
Contact:

#2 Post by anton » 31 Jan 2006 08:28

Higalea.dl,
Using MMC SD cards with 256Mb formatted in FAT16 gives a sectorsize of 4096 bytes...
I think you have it wrong. The cluster size is 4096 bytes. The sector size will be 512 bytes. Thus you can use this library.

Anton
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)

galea.dk
Posts: 3
Joined: 30 Jan 2006 23:24
Contact:

Cluster

#3 Post by galea.dk » 31 Jan 2006 13:12

And I thought I was smart.... (Won't jump the gun again! ;) )
Its just that I cant use 256Mb cards with the sd library? and the 3 different ones I have doesnt work!

Do you have a good explanation why it doesn't work with all type of cards??

Regards

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Cluster

#4 Post by zristic » 31 Jan 2006 20:16

Recently we realized that some mmc/sd cards have a boot sector. These cards fail to work with the library currently supplied with mikroPascal/mikroBasic/mikroC. However, we wrote an enhancement in the library, so it works fine will all cards now. The library will be released with the new versions of compilers as they pop out. mikroPascal is scheduled to be released in following 10 days.

Post Reply

Return to “mikroPascal Wish List”