-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Description
What you are trying to do?
I use M5Core2 wich has your library inside.
I use that code to check SD card:
bool __hasSD = false; // In setup
void check_SD() {
bool tmp_status = __hasSD;
// Проверка инициализации карты
if (!__hasSD)
__hasSD = SD.begin();
// Проверка типа карты
Serial.print(SD.cardType());
Serial.print("|");
Serial.print(CARD_NONE);
Serial.print("\n");
//__hasSD = SD.cardType() != CARD_NONE;
// Проверка наличия файла
if (__hasSD)
__hasSD = SD.exists("/Data/checker.txt");
// Проверка файла
if (__hasSD) {
File entry = SD.open("/Data/checker.txt", FILE_READ);
__hasSD = entry.size() != 0;
entry.close();
}
This code works for all exept one situation.
So, this situation:
- I start M5Core2 without SD card
*) check_SD works fine - I insert SD card
*) check_SD works fine - I extract SD card
*) check_SD works fine - I insert SD card
*) check_SD says that no SD in M5Core2
Logs on 4th step:
[W][sd_diskio.cpp:137] sdCommand(): no token received
[W][sd_diskio.cpp:137] sdCommand(): no token received
[W][sd_diskio.cpp:137] sdCommand(): no token received
[W][sd_diskio.cpp:137] sdCommand(): no token received
[W][sd_diskio.cpp:137] sdCommand(): no token received
[W][sd_diskio.cpp:137] sdCommand(): no token received
Hardware:
Board: M5Stack M5Core2
Core Installation version: M5Core2 0.0.6 (esp-idf 1.0.6)
IDE name: Arduino IDE 1.8
Flash Frequency: 240Mhz
PSRAM enabled: yes
Upload Speed: 115200
Computer OS: Windows 11
Metadata
Metadata
Assignees
Labels
No labels