-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
m5stack basic v2.7 not read sdcard #77
Comments
Hi, thx. I do not jave the newer M5Stack models, I cannot buy all ;-) Do you have how to recognize model programatically, so I could add a condition to the code or #IFDEF ? |
Thanks for the quick reply. The problem lies in the fact that the SD card read frequency is not readable at 20MHz in m5stack basic v2.7, but at 15MHz. So I think it will work with this modification even with the old m5stack. Unfortunately, I don't have an early m5stack, so I can't verify this. The following modification also worked. M5.begin(); SD.begin(); I really appreciate it. Thanks for the great program. |
Thanks, I will try.
Martin
From: nyan750 ***@***.***>
Sent: Tuesday, November 26, 2024 11:35 AM
To: mlukasek/M5_NightscoutMon ***@***.***>
Cc: Martin Lukasek ***@***.***>; Assign ***@***.***>
Subject: Re: [mlukasek/M5_NightscoutMon] m5stack basic v2.7 not read sdcard (Issue #77)
Thanks for the quick reply.
I think it is difficult to make ifdef decision because there is no difference between m5basic and 2.7 board type.
The problem lies in the fact that the SD card read frequency is not readable at 20MHz in m5stack basic v2.7, but at 15MHz.
So I think it will work with this modification even with the old m5stack. Unfortunately, I don't have an early m5stack, so I can't verify this.
The following modification also worked.
M5.begin();
M5.begin(true, false);
SD.begin();
SD.begin(4);
I really appreciate it. Thanks for the great program.
—
Reply to this email directly, view it on GitHub<#77 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJNAKKIICNA7BFXNMM2IXD32CRFFLAVCNFSM6AAAAABSPG2MMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBQGI2TENJTHE>.
You are receiving this because you were assigned.Message ID: ***@***.******@***.***>>
|
What kind of sd card do you use ? The best are 4GO or 8GO...not more . |
Hello
Thank you for the good software
Well, m5stack basic V6 & V7 can't read the SD card.
The cause seems to be that the clock frequency of the SD card has changed.
The countermeasure for this is
You need to change the source to
SD.begin();
SD.begin(GPIO_NUM_4, SPI, 15000000);
TNX mlukasek
The text was updated successfully, but these errors were encountered: