cancel
Showing results for 
Search instead for 
Did you mean: 

Getting started with NUCLEO-F722ZE and a 16GB EMMC - MMC_PowerON fails

bit-flipper
Associate

Hello everyone!

I have started a small journey to try to get started with eMMC memory and are trying to get it working.The end goal is to have a USB HS mass storage device eMMC working with a file system. (32gb or more)

bitflipper_13-1695811950133.png

 

My current step that I'm stuck is where the "MX_SDMMC1_MMC_Init" fails.

Specifically to get the eMMC voltage level fails.

/* SEND CMD1 APP_CMD with voltage range as argument */

I have some theories what can be wrong but any help would be really useful 🙂

  • Use external crystal as clock source on the NUCLEO instead of HSI [will try out this]
  • SD breakout card setup [not sure what that would be?]
  • Wrong clock configuration, currently targeting between 100-400kHz with the MMC divider [?]
  • EMMC memory not supporting the CMD1 in the initialization [no idea if it could be like that?]
  • Bad cable connection on my test board [will make another inspection or perhaps make a solder]
  • More???

Code steps at failure

bitflipper_7-1695811128332.png

bitflipper_8-1695811206732.png

bitflipper_9-1695811264849.png

 

 

 

Hardware Setup

 

SD Breakout Connection

bitflipper_14-1695812023109.png

 

bitflipper_0-1695806959428.png

bitflipper_1-1695806985276.png

bitflipper_2-1695807006709.png

 

CubeMX Configuration

bitflipper_5-1695807279477.png

bitflipper_6-1695807307247.png

 

bitflipper_4-1695807251794.png

 

bitflipper_3-1695807233106.png

Software setup

bitflipper_10-1695811795504.png

bitflipper_11-1695811823715.png

 

 

2 REPLIES 2
Billy OWEN
ST Employee

Hi @bit-flipper 

 

The forum moderator had marked your post as needing a little more investigation and direct support. An online support case has been created on your behalf, please stand by for just a moment and you will hear from us.

 

Regards,

Billy

Johi
Senior III

I had similar problems with my STM32F407, the solution was to start with 1 bit and not 4 wide as my mmc did not support the 4 bits wide mode.