Skip to main content
cfilipescu
Senior
April 23, 2022
Solved

TFA boot failed with eMMC even with proper OTP fuses

  • April 23, 2022
  • 2 replies
  • 2530 views

https://community.st.com/s/question/0D53W00000PoivmSAB/changing-the-emmc-pins-with-otp

I have the same pin mapping as above:

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

I programmed the OTP fuses as follows:

  • WORD 3: 0x23000004 (I also program SD as primary and eMMC as secondary)
  • WORD 5: 0x56755395
  • WORD 6: 0x000076A4

The problem is that even after flashing the eMMC with the TFA image as per the following procedure: https://u-boot.readthedocs.io/en/latest/board/st/stm32mp1.html#prepare-emmc

I still get nothing on the UART4 console.

We also put a scope on the SDMMC2_CK line and no clock is detected.

Does it mean the BootROM is not accessing the eMMC?

Am I missing something?

This topic has been closed for replies.
Best answer by cfilipescu

the issue was resolved but I don't remember the resolution

2 replies

PatrickF
Technical Moderator
April 26, 2022

Hi @cfilipescu​ ,

there could be multiple causes:

  • bad BOOT pins (please ensure it is neither 0b000 nor 0b100)
  • badly programmed eMMC
  • badly eMMC setup (e.g. PARTITION_CONFIG in ext-CSD of the eMMC )
  • badly formatted TF-A binary (especially header)
  • bad OTP (those you listed sound ok)
  • bad HW around eMMC (supplies, pull-ups, etc...)

Could you try using CubeProgrammer to flash TF-A using USB ?

Please check also https://wiki.st.com/stm32mpu/wiki/STM32MP15_ROM_code_overview#Debug_and_Error_messages

and try to get the BootROM trace using https://wiki.st.com/stm32mpu/wiki/STM32MP15_ROM_trace_analyzer

Regards

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.NEW ! Sidekick STM32 AI agent, see here
cfilipescu
cfilipescuAuthorBest answer
Senior
October 27, 2023

the issue was resolved but I don't remember the resolution