Skip to content
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

Open
nyan750 opened this issue Nov 26, 2024 · 5 comments
Open

m5stack basic v2.7 not read sdcard #77

nyan750 opened this issue Nov 26, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@nyan750
Copy link

nyan750 commented Nov 26, 2024

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

@mlukasek
Copy link
Owner

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 ?

@mlukasek mlukasek self-assigned this Nov 26, 2024
@mlukasek mlukasek added the bug Something isn't working label Nov 26, 2024
@nyan750
Copy link
Author

nyan750 commented Nov 26, 2024

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.

@mlukasek
Copy link
Owner

mlukasek commented Nov 26, 2024 via email

@Cheun1
Copy link

Cheun1 commented Nov 26, 2024

What kind of sd card do you use ? The best are 4GO or 8GO...not more .

@Cheun1
Copy link

Cheun1 commented Nov 26, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants