If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Micro SD card / MSP430 interface: write problem
Hi everyone,
I have interfaced a Micro SD card to a MSP430 microcontroller using the SPI mode. Everything worked perfectly fine but I recently had problems when writing too often into my files. Here is my setup. As I said the card (SDHC 4Go) is directly connected to the microcontroller via its USCI (SPI) peripheral. I have written the basic SD access (register read / write, basically to find if a card is a SDSC or SDHC, page read / write). I have followed the reduced SD spécification to do so (CRC activated, waiting after any operation for the card to leave the 'busy' state). On top of that I have implemented a FAT32 filesystem driver that is able to create / delete, read / write any file on the root directory (not directory handling, only short filenames). Here is my problem: sometimes (I'm not able to give specific detail on 'when' because it varies a lot in time and frequency), complete sectors of my create files are filled with zeroes... I have investigated on my filesystem implementation because it seemed obvious that the problem what there. But it turned out that I have managed to reproduce that bug only writing pages using the low level SD access. For exemple if i write 4000 pages of 512 bytes filled with 0xAA bytes, I get 2 to 10 pages filled with 0x00. Does anyone encountered this kind problem? I would be so grateful if someone could give me at least a hint on how to solve that bug because I'm wasting my last week investigating on that. Regards, Christophe |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Micro ATX/Video Card | m | Homebuilt PC's | 7 | December 4th 06 09:27 AM |
Flash card reader: write problem... | KILOWATT | General | 7 | June 1st 04 12:19 AM |
IDE interface on SB card. Speed? | ~misfit~ | General | 2 | March 15th 04 10:38 AM |
Can enabling AGP Fast Write on a AGP card which does not support this feature damaged the AGP card ? | Andy Smith | Nvidia Videocards | 0 | October 10th 03 08:42 PM |
Can enabling AGP Fast Write on a AGP card which does not support this feature damaged the AGP card ? | Andy Smith | Nvidia Videocards | 4 | October 10th 03 07:56 PM |