Lecture SD
Revision 7:784b2bd6d8c0, committed 2021-05-05
- Comitter:
- valentinbruchet
- Date:
- Wed May 05 08:19:28 2021 +0000
- Parent:
- 6:8db0d3b02cec
- Commit message:
- sd
Changed in this revision
| FATFileSystem.lib | Show annotated file Show diff for this revision Revisions of this file |
| SDFileSystem.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/FATFileSystem.lib Fri Sep 09 19:35:14 2016 +0000 +++ b/FATFileSystem.lib Wed May 05 08:19:28 2021 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/mbed-official/code/FATFileSystem/#e2ab678eb692 +https://developer.mbed.org/teams/mbed-official/code/FATFileSystem/#28e685e5ff7f
--- a/SDFileSystem.cpp Fri Sep 09 19:35:14 2016 +0000
+++ b/SDFileSystem.cpp Wed May 05 08:19:28 2021 +0000
@@ -156,7 +156,7 @@
// send CMD0, should return with all zeros except IDLE STATE set (bit 0)
if (_cmd(0, 0) != R1_IDLE_STATE) {
- debug("No disk, or could not put SD card in to SPI idle state\n");
+ debug("Pas de disque ou impossible de mettre la carte SD en etat d'inactivite SPI\n\r");
return SDCARD_FAIL;
}
@@ -167,7 +167,7 @@
} else if (r == (R1_IDLE_STATE | R1_ILLEGAL_COMMAND)) {
return initialise_card_v1();
} else {
- debug("Not in idle state after sending CMD8 (not an SD card?)\n");
+ debug("Pas en etat d'inactivite apres l'envoi du CMD8 (pas une carte SD?)\n\r");
return SDCARD_FAIL;
}
}
@@ -206,7 +206,7 @@
int SDFileSystem::disk_initialize() {
_is_initialized = initialise_card();
if (_is_initialized == 0) {
- debug("Fail to initialize card\n");
+ debug("Echec de l'initialisation de la carte\n\r");
return 1;
}
debug_if(SD_DBG, "init card = %d\n", _is_initialized);