I have a requirement to store data to micro sd card continuously in SPI mode. So far, I am able to read and write data directly to sectors. I am not using any file system.
When we do a long run test, at some point the writing to the sectors fail continuously. And the response from the card at that time is always 0xFF or 0x3F for WRITE_SINGLE_BLOCK command.
Has anyone came across this kind of issue? What could be the reason for this kind of behaviour by the card?
Do I have to do any bad sector handling mechanism to over come this issue?
Please help me solve the issue.