STM32MP157 custom board TF-A SDMMC init failed
Hello, we are trying to start our custom STM32MP157 board. We encountered some problems that I want to ask about. First is with TF-A, it gets to the SD card init (boot source) and it fails. We have eMMC on MMC2 and it also gives error message.
NOTICE: CPU: STM32MP157DAC Rev.Z
NOTICE: Model: Zegarson board TF-A testing 0.0.10
ERROR: stm32_sdmmc2_mmc_init: DT error
ERROR: SDMMC1 init failed
PANIC at PC : 0x2ffeb8cf
What is really weird about that, after some time playing with MMC configs (pull-ups, 1-bit 4-bit wide bus, speed, etc.) it randomly started working and got to DDR init and only then failed.
NOTICE: CPU: STM32MP157DAC Rev.Z
NOTICE: Model: Zegarson board TF-A testing 0.0.8
NOTICE: BL2: v2.8-stm32mp1-r2.0(release):v2.8-stm32mp-r2-1-g648de4789-dirty(648de478)
NOTICE: BL2: Built : 03:58:54, Jul 13 2024
ERROR: DDR addr bus test: can't access memory @ 0xc0000004
PANIC at PC : 0x2ffeac63
But a few days after we made clean build and it again has SD init problem.
What we discovered is that when we bumped final images and compared DTS files converted from DTB, it looks like the version that does not work do not contain sdmmc1 or sdmmc2 configuration, but working one has that.
Please help us what is going on and how to troubleshoot that?
Second problem is with STM32DDRFW-UTIL. We configured it for our board and got .stm32 file.
I flashed first two partitions on SD card with this file instead of tf-a.stm32, LED on PA13 is lit (so boot failure); and of course nothing on UART4.
Also we tried to use stm32wrapper4dbg on this .stm32 image but it returned an incorrect signature error. Is it only for TF-A or can we use it on STM32DDRFW-UTIL?
Am I flashing it wrong? What should I look for?
Thanks!
