Hey everyone! To execute SPI-commands CMD26 with an SD card, I need a modified Arduino SD library. The existing library, unfortunately, does not support these command and I do not have time to dive into this code.
If anyone has it or can do it, I'll gladly pay. Please write in PM.
Please, with no questions! Anyone who is aware of this matter knows why it is needed. Thanks!
b707
December 22, 2023, 7:55pm
2
What are the CMD26 and CMD62?
There are no such "SPI commands".
They're referring to low level SD card commands.
CMD62 - enter vendor mode
CMD26 - write CID (Card ID)
Which may or may not be recognized by the SD card in SPI mode.
1 Like
What other mode of accessing the card is there aside from SPI ?
b707
December 22, 2023, 8:21pm
6
It looks like the commands could be used to simulate the card of specific vendor by card of another vendor.
Unfortunately no, because this is not necessary.
These commands are needed to diagnose and repair damaged memory cards (low level).
b707
December 22, 2023, 8:43pm
8
Something like cards from AliExpress, that advertised as XXX Gb, but in fact a very few Mb size?
I think this is not relevant for SD cards, but for USB drives it may be.
b707
December 22, 2023, 8:54pm
10
If the problem is like that I mentioned - fake USB drives from AliExpress - there is no chance to solve it by editing low level card header data.
I did not know SD cards used SDIO, i thought they where SPI devices.
They have 1 and 4 bit coms in SDIO, but the standard method is SPI.
OP will certainly need to not use SPI for low-level stuff.
I did everything myself, I don't need help anymore. Thank you everyone and Merry Christmas!
b707
December 25, 2023, 3:42pm
14
And what about results? Did you repair a broken memory card?
Everything is fine, you don't need to worry. These commands cannot damage the memory card.
system
Closed
June 22, 2024, 4:20pm
16
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.