eMMC access on STM32F7 #36274
-
I'm trying to prototype a system where I have a NucleoF746ZG board attached to an eMMC (which has a FAT32 filesystem on it). I started with the
(I tried 1, 4 and 8 bit here, they all behave the same, which is not surprising since the failure occurs in setup when we are in 1-bit mode anyway) My
(I added a shell for debug support). Digging a bit more deeply at the generated files, the resulting full
Out of the box, the While investigating this, I realized that there was a second driver in the HAL, Now we get a lot further! BUT, it still fails at a Anyone got any ideas? -- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the answer ... and it is somewhat complex. First, there is a difference (especially during device initialization) between the MMC (JEDEC) protocol and the SD protocol. The eMMC chips I am using are JEDEC compatible. So CMD3, which is used to assign the card Relative device Address, was setting the RCA to 0 (which is a reserved special value). Then we ask the command for its extended Card Specific Data (with CMD8) without selecting the card, so it refuses to respond. I am preparing patches for these issues. |
Beta Was this translation helpful? Give feedback.
I found the answer ... and it is somewhat complex.
First, there is a difference (especially during device initialization) between the MMC (JEDEC) protocol and the SD protocol. The eMMC chips I am using are JEDEC compatible. So CMD3, which is used to assign the card Relative device Address, was setting the RCA to 0 (which is a reserved special value). Then we ask the command for its extended Card Specific Data (with CMD8) without selecting the card, so it refuses to respond. I am preparing patches for these issues.