2021-12-17 01:31 PM
I didn't change anything in the device tree just compiled the arm-trusted-firmware-v2.4-stm32mp-r2 instead of arm-trusted-firmware-v2.4-stm32mp-r1 and I get the following on UART:
PANIC at PC : 0x2ffcfd2b
What is different between the two versions?
Solved! Go to Solution.
2022-01-03 12:50 PM
@Community member
I have tried using the Bootlin repo as an example and unfortunately, I still have issues. I even tried booting their image for the DK1 board but I am getting the same result. I feel like there is a fundamental problem somewhere with MCUs that are not stm32mp157x.
With the image I built I get:
NOTICE: CPU: STM32MP153AAC Rev.B
NOTICE: Model: STMicroelectronics custom STM32CubeMX board - openstlinux-5.10-dunfell-mp1-21-11-17
ERROR: CMD13 failed after 5 retries
ERROR: SDMMC1 init failed
PANIC at PC : 0x2ffe9b21
With the Bootlin image for stm32mp157a-dk1 I get:
NOTICE: CPU: STM32MP153AAC Rev.B
NOTICE: Model: STMicroelectronics STM32MP157A-DK1 Discovery Board
ERROR: CMD13 failed after 5 retries
ERROR: SDMMC1 init failed
PANIC at PC : 0x2ffe9af7
2022-01-10 07:04 AM
@Community member is it possible there is a problem with STM32MP153xxx MCU and DV3.1?
2022-01-10 07:13 AM
Hi @cfilipescu ,
Not I'm aware of.
Can you please provide the full TF-A DTS file.
I would like to review how you managed DK1 DTS adaptation to your mp153 device and check also the SDMMC1 related node, since the issue looks definitely is this area
Olivier
2022-01-10 07:20 AM
2022-01-10 07:30 AM
Link not accessible for me
Please attach the file to this thread.
Thanks,
Olivier
2022-01-10 08:25 AM
2022-01-10 09:16 AM
Hi @cfilipescu ,
DTS you provided don't have &rcc node where you should have something like :
..
st,pkcs = <
CLK_CKPER_DISABLED
CLK_ETH_DISABLED
CLK_SDMMC12_HCLK6
CLK_STGEN_HSI
CLK_USBPHY_DISABLED
CLK_SPI2S1_DISABLED
CLK_SPI2S23_DISABLED
CLK_SPI45_DISABLED
CLK_SPI6_DISABLED
CLK_I2C46_DISABLED
CLK_SDMMC3_DISABLED
CLK_ADC_DISABLED
CLK_CEC_DISABLED
CLK_I2C12_DISABLED
CLK_I2C35_DISABLED
CLK_UART1_DISABLED
CLK_UART24_DISABLED
CLK_UART35_DISABLED
CLK_UART6_DISABLED
CLK_UART78_DISABLED
CLK_SPDIF_DISABLED
CLK_SAI1_DISABLED
CLK_SAI2_DISABLED
CLK_SAI3_DISABLED
CLK_SAI4_DISABLED
CLK_LPTIM1_DISABLED
CLK_LPTIM23_DISABLED
CLK_LPTIM45_DISABLED
>;
...
For which you migth check status of CLK_SDMMC12_
And I don't see node &sdmmc1 in which you enable it :
&sdmmc1{
pinctrl-names = "default";
pinctrl-0 = <&sdmmc1_pins_mx>;
status = "okay";
/* USER CODE BEGIN sdmmc1 */
/* USER CODE END sdmmc1 */
};
Strange since this supposed to be properly generated by CubeMX.
Olivier
2022-01-10 09:30 AM
2022-01-12 09:30 AM
Hi @cfilipescu ,
I understand here you are trying to boot from SDCard. How did you populate the SDCard ?
Did you succeed to do it with CubeProg in serial boot mode ? or did you populate it on PC ?
Also, please confirm you successfully boot exact same hardware with a precedent software version ?
Thanks,
Olivier
2022-01-12 03:27 PM
Hi @Community member ,
Yes, I am booting from SDcard and I populated it using the PC.
https://github.com/bootlin/buildroot-external-st#flashing-and-booting-the-system
dd if=output/images/sdcard.img of=/dev/sdx bs=8M oflag=sync status=progress
Yes, I can boot exact same hardware with a precedent software version that uses "legacy" BSP partitioning without FIP.