Hi,
I'm trying to program eMMC card with STM32U575 but the init fonction MX_SDMMC1_MMC_Init() failes in SDMMC_GetCmdResp3(SDMMC_TypeDef *SDMMCx) and return SDMMC_ERROR_CMD_RSP_TIMEOUT.
Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-17 2:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-17 3:45 AM
Is this a custom board?
Are any of the queries to the eMMC chip illiciting a response?
Clocks, PLLs, Pins, Power?​
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-17 6:50 AM
What clock rate are you using? Might try slowing it down by an order of magnitude to see if results change. If so, the culprit is likely the slow and poorly done HAL eMMC library.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-17 6:57 AM
Hi @Community member​,
Thanks for your answer
It is a Geenliant GLS85VM1507 Board.
The first command gives response when I cup the power and put it back but the second one never give response
Everything is fine for the clocks, PLLs, Pins and power.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-17 7:35 AM
That sounds like a CHIP, not a BOARD
If GreenLiant made the board, have them provide working reference code.
>>Everything is fine for the clocks, PLLs, Pins and power.
Yet not work properly. My approach to this is to unpack all the RCC PLL,SDMMC clock tree settings so I know which source is used and how fast the clock to the part is.
I'd start proving it works a 25-MHz in 1-bit mode, and walk my way up to 4 and 8-bit operation, and then up to 50/52 MHz and DDR modes.
Review the schematics, double checking pull up and series resistors placed, and supplies to the part.
Not sure screen shots of library code are the path to success here.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-17 7:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-17 7:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-17 7:50 AM
Maybe you can see the problem with that.
Thanks for your answer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-17 8:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-17 8:02 AM
With the .ioc file, you can see my clock config.
