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

use SDCard on NuttX question。 #11420

Closed
GC-20-20 opened this issue Dec 19, 2023 · 4 comments
Closed

use SDCard on NuttX question。 #11420

GC-20-20 opened this issue Dec 19, 2023 · 4 comments

Comments

@GC-20-20
Copy link
Contributor

I tried to follow the tutorial to use the SD card on the nuttx, but now it reports this error when mounting the SD:
1702973112641
I can't find what type of error this is.

@acassis
Copy link
Contributor

acassis commented Dec 20, 2023

@GC-20-20 Please share more information about your setup. What board are you using, what Ubuntu version, what toolchain, etc.

This number 5 means I/O Error, please look at nuttx/include/errno.h

@GC-20-20
Copy link
Contributor Author

@acassis
Thank you very much for your reply, I am using a Chinese learning development board with STM32F429, I rechecked the SDIO pins and the configuration information, but it still can't be mounted with ERROR: 5. Do you have any idea in this case?
1703154120689

@acassis
Copy link
Contributor

acassis commented Dec 22, 2023

@GC-20-20 please double check you board config, I suggest you to look the SDCARD examples for stm32f4discovery and stm32f401rc-rs485. Double checkout all pins and notice that your board doesn't have the Card Dection (CD) pin connected to the MCU.

Also you can enable the debug options to collect more information:

Build Setup  --->
    Debug Options  --->
        [*] Enable Debug Features
        ...
        [*]   File System Debug Features
        [*]     File System Error Output
        [*]     File System Warnings Output
        ...
        [*]   Memory Card Driver Debug Features
        [*]     Memory Card Driver Error Output
        [*]     Memory Card Driver Warnings Output
        [*]     Memory Card Driver Informational Output

@GC-20-20
Copy link
Contributor Author

@acassis Thanks for your reply, I have now successfully mounted it. The cause was a hardware problem, two modules were mounted on the SDIO bus, masking one of them worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants