cancel
Showing results for 
Search instead for 
Did you mean: 

Early boot debug on STM32MP1, SD-Card boot not working

bfh_dls
Associate II

I'm working on a project using the Seeed Studio STM32MP157C-Odyssey-SoM (it is a module with the STM32MP1, DDR, eMMC and STPMIC). I am making a new PCB into which the module is plugged.

 

When using the module on the original host board from Seeed, both the eMMC (SDMMC2 controller) and the SD-Card (SDMMC1 controller) boot work.

On my board only the eMMC boot works. When using the SWD debugger, I found that the CPU does not even enter the FSBL, but remains stuck in the boot ROM. By checking the SD-Card connection, I found that the CPU does not even attempt a write (and the SDMMC1 controller has only the reset values in its registers).

 

I also determined that the boot mode is properly detected in the SYSCFG_BOOTR register.

 

Is there a way to debug the boot ROM?

 

I understand the code is not available, but I hope to be able to determine what is happening by reading peripheral registers, which ones should I check?

 

Thanks for your help

1 REPLY 1
PatrickF
ST Employee

Hi,

please have a look to

https://wiki.st.com/stm32mpu/wiki/STM32MP15_ROM_code_overview#Debug_and_error_cases

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.