Forum de la team KSR - Index du Forum
Small SD card question

Répondre au sujet    Forum de la team KSR - Index du Forum » SA-MP » Bugs SA-MP Sujet précédent
Sujet suivant
Small SD card question
Auteur Message
Grand Manitou

Hors ligne

Inscrit le: 07 Oct 2017
Messages: 126

Message Small SD card question Répondre en citant
Hello, I have a generic question to reading/writing from/to SD/MMC cards with mikroPascal. 

There exists a library which works fine with FAT16 formatted cards. Now I tried to take one of my older 16MB CD cards. In LINUX I made a partition of type 4 (FAT16 <32MB) on it and formatted it with "mkfs.msdos -f 2 -F 16 -n FAT16 /dev/sdf1", and the result is a FAT16 which can be read and written without problems in LINUX. I also tried to leave -f 2 away to create only one FAT instead of two. No difference. 

From the PIC, I was able once to write a file to this card, I also could read the file on LINUX. But since this one lucky event, the card cannot be detected any more by mikroPascal, the init_fat16_,,, function always returns the error number 255 (No card detected). 

Because an other card (HighSpeed, 512MB, FAT16) works without problems on the same device, and because I am able to read/write both cards (the 16MB one and the 512MB one) without any problems in LINUX, I have the opinion that the small card may have a different problem instead of the FAT16 format, i.e. a timing problem (it is old? 

Because it makes no sense to use 512MB cards for only writing one file with ~2kB on it, I will be happy to receive some ideas on what I can try to get the 16MB cards working. I use a 18F2680 at 11,0592 MHz, everything running on 3,3V. 

Thanks for any useful information.

I didn't find the right solution from the Internet.
Brand Explainer Animation

Ven 1 Déc - 09:09 (2017) AIM

Message Publicité
PublicitéSupprimer les publicités ?

Ven 1 Déc - 09:09 (2017)
Montrer les messages depuis:    
Répondre au sujet    Forum de la team KSR - Index du Forum » SA-MP » Bugs SA-MP Toutes les heures sont au format GMT + 1 Heure
Page 1 sur 1

Sauter vers: 

Index | Panneau d’administration | Creer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.Traduction par :