LoomVortex
Junior Member level 1
- Joined
- Apr 22, 2009
- Messages
- 16
- Helped
- 1
- Reputation
- 2
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Kajaani, Finland
- Activity points
- 1,389
Hi!
I have been trying to write data on my Kingston elite pro 512MB SD card but write always fails. SPI mode initialization works ok and I can read the card size and card responds 0x00 to write command.
Problem is that I get CRC error response or no response at all depending from do i deassert&assert CS after write command.
With Sandisk 2GB micro SD card everything works and i can write and read data.
Sandisk micro SD 2GB write sequence:
And strange thing is that Kingston card responds CRC error sooner depending from dummy byte count. So it seems that card doesn´t even wait for the start token 0xFE and assumes data begin after command response.
Here is the Kingston write command (CMD24) WITHOUT CS deassert&assert which always returns CRC error:
Kingston CRC error response:
Kingston write command (CMD24) WITH CS deassert&assert and no response :
Has anyone else had similar kind of problem? I have tried changing clock speed between 200kHz - 6 MHz but no help.
I have been trying to write data on my Kingston elite pro 512MB SD card but write always fails. SPI mode initialization works ok and I can read the card size and card responds 0x00 to write command.
Problem is that I get CRC error response or no response at all depending from do i deassert&assert CS after write command.
With Sandisk 2GB micro SD card everything works and i can write and read data.
Sandisk micro SD 2GB write sequence:
And strange thing is that Kingston card responds CRC error sooner depending from dummy byte count. So it seems that card doesn´t even wait for the start token 0xFE and assumes data begin after command response.
Here is the Kingston write command (CMD24) WITHOUT CS deassert&assert which always returns CRC error:
Kingston CRC error response:
Kingston write command (CMD24) WITH CS deassert&assert and no response :
Has anyone else had similar kind of problem? I have tried changing clock speed between 200kHz - 6 MHz but no help.