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 "happy" mikroe coder....
MMC SD LIB that handles more than 512 bytes per sector
Higalea.dl,
Anton
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.Using MMC SD cards with 256Mb formatted in FAT16 gives a sectorsize of 4096 bytes...
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 !! ;)
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 !! ;)
Cluster
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
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
Re: Cluster
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.