cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the eMMC pins with OTP

ANiko.3
Associate II

Hello,

I have a custom board based on STM32MP151-C with an eMMC on the following pins:

  • SDMMC2_CK PE3 (AF09)
  • SDMMC2_D0  PE6 (AF07)
  • SDMMC2_CMD   PG6 (AF10)

I read that the ROM expects the the SDMMC2_D0 pin on PB14 so I need to change it by using values from the OTP. I found this link (https://community.st.com/s/question/0D50X0000AkQJiHSQW/how-to-change-emmc-interface) and did the same as the ST Support, just for my pins. Here are my results.

  • OTP3 = 0x00000004    SDMMC2 (uses non default AFmux defined in OTP)
  • OTP5 = 0x38745394
    • SDMMC2_CK = PE3 (bits[15:0]: port0=5=GPIOE, pin0=3, afmux0=9, mode0=4=AF;pull-up;medium-speed)
    • SDMMC2_D0 = PC8 (bits[31:16]: port1=3=GPIOC, pin1=8, afmux1=7, mode1=4=AF;pull-up;medium-speed)
  • OTP6 = 0x000076A4
    • SDMMC2_CMD = PG6 (bits[15:0]: port2=7=GPIOG, pin2=6, afmux2=10, mode2=4=AF;pull-up;medium-speed)

Could someone please let me know if I calculated the OTP values correctly? So I dont brick the board.

PS: How do I determine the speed on the pin (low, medium or high)?

Thanks.

10 REPLIES 10

Glad to see it is working.

Please click on 'Select as Best' if our replies solved your issue or answered your question

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.