Microsd reset card while in spi mode without power cycle

I have an existing embedded system with existing developed C code. Sometimes a microSD card can block the delivery of answers outside the existing system. Currently, I'm not sure why, but I suspect that a handler on the existing system allows subsequent calls to be made too quickly.

The card is used in Spi mode for direct I / O.

The electrical circuit does not display any control over the power from the card and from it, so I can not just reset and reconnect to the new Spi.

My only option seems to find a way to get it to reset via a Spi call, or look at creating a function to restore sd back to its “expected state” from any lock it is in.

With that in mind, is there a command or set of commands that I can use to call the reset equivalent, or cancel everything that the microSD controller expects ? Considering the specifications of SD associations, the only reset link is CMD0 and is not applied once in Spi mode.

Any thoughts are welcome and thanks in advance.

-Chris

+4
source share

All Articles