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

The board layer does not work for SDIO #1

Open
jkrech opened this issue Aug 9, 2024 · 1 comment
Open

The board layer does not work for SDIO #1

jkrech opened this issue Aug 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jkrech
Copy link
Member

jkrech commented Aug 9, 2024

SDIO problem:

  • CubeMX creates 'HAL_SD_ConfigWideBusOperation(&hsd, SDIO_BUS_WIDE_4B)' function call in main.c. This function call returns always with error but I was not able to find the reason.
  • Currently the call is commented out to make the layer run successfully.
  • Once CbeMX generator is invoked again this manual change will be overwritten

uSD Card Detect pin (PG2)

  • Pin is configured but not listed in MX_Device.h -> @DavidLesnjak does this require a change in the cbridge?
@jkrech jkrech added the bug Something isn't working label Aug 9, 2024
@VladimirUmek
Copy link
Contributor

SDIO problem:
This is configuration issue. I checked driver documentation and it did not mention that MX_*_SD_Init function shall not be called in main.c. Therefore this commit adds brief description what to do and example (in the same doc page) shows the steps.

uSD Card Detect:
An arbitrary GPIO pin can be configured as Card Detect pin and User Label MemoryCard_n_CD (n is peripheral instance number) must be added to it in STM32CubeMX. Define is generated in main.h which is included in MCI driver implementation. MCI driver then uses generated defines to read pin state.

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