Commit Graph
7 Commits
Author SHA1 Message Date
Kostas Missos 40938fdb58 Add partial support for unknown CSD Structure V3 2018-05-06 20:59:46 +03:00
Kostas Missos 73e3cc7be6 Make write error fatal but let user choose to continue
Write error to sd is now fatal as per FatFs guidelines.
Let the user choose to continue or to abort and try again.
Add a message to let the user know that we calculate free space

Signed-off-by: Kostas Missos <ctcaer@gmail.com>
2018-05-06 20:52:47 +03:00
Kostas Missos 90f893f573 Fix small typo
Signed-off-by: Kostas Missos <ctcaer@gmail.com>
2018-05-06 20:52:47 +03:00
Kostas Missos 3f44441df4 Add SD write retry and some other changes
Increase retry count to 6 tries
Add colors and change a little bit some messages
Change some namings

Signed-off-by: Kostas Missos <ctcaer@gmail.com>
2018-05-06 20:52:47 +03:00
Kostas Missos 44c3ae5ef1 Add partial dumping when free space is not enough
Signed-off-by: Kostas Missos <ctcaer@gmail.com>
2018-05-06 20:52:47 +03:00
Kostas Missos 5a775ebb72 Add lv support back and fix its change logic 2018-05-06 20:26:30 +03:00
Kostas Missos 884ad1f6e6 Add support for SD cards that report wrong info
Some vendors, *I'm looking at you Samsung*, report support for 1.8 voltage, even though the card does not support it.

So, disable low voltage support for now until the behavior is changed to act more like what Linux does. (re-initializing the SD card and disables the low voltage switch).

Fix the switch to high speed mode for high voltages also.

Additionally, correct the IF COND reply. 0xAA is the important part.
2018-05-06 10:53:35 +03:00