sdmmc not working with 4-bit mode but working only with 1-bit mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-16 12:42 AM
MCU = STM32L433RCTx
STM32 CubeIDE version - 6.8.0
I'm working on sd card operation using sdmmc 4-bit mode but it is not working. but when I select 1-bit sdmmc mode so it is working as well.
I want to know how can I resolve this issue. my sd card connector is MSD-4-A and there are all line connected with 47k pullup resister leaving CLK pin.
SDMMC Init -
hsd1.Instance = SDMMC1;
hsd1.Init.ClockEdge = SDMMC_CLOCK_EDGE_RISING;
hsd1.Init.ClockBypass = SDMMC_CLOCK_BYPASS_DISABLE;
hsd1.Init.ClockPowerSave = SDMMC_CLOCK_POWER_SAVE_DISABLE;
hsd1.Init.BusWide = SDMMC_BUS_WIDE_4B;
hsd1.Init.HardwareFlowControl = SDMMC_HARDWARE_FLOW_CONTROL_DISABLE;
hsd1.Init.ClockDiv = 4;
there are lots of post available related this issue but can not clear proper solution. In some post there are talking bug in firmware in latest version. if yes so how can I resolve it.
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-16 1:18 AM - edited ‎2024-04-16 9:42 AM
Hello,
See these threads:
https://community.st.com/t5/stm32cubemx-mcus/problems-with-stm32f405-sd-card-4wirescubemx/m-p/139892
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-16 1:18 AM - edited ‎2024-04-16 9:42 AM
Hello,
See these threads:
https://community.st.com/t5/stm32cubemx-mcus/problems-with-stm32f405-sd-card-4wirescubemx/m-p/139892
