STM32MP135 PANIC and DDR frequency error
Hello ST community,
I am designing a board with STM32MP135 CPU and DDR3L based from STM32MP135F-DK.
DDR stress test passed successfully and tf-a files are adjusted to have I2C4 on pins used in my design (SCL on PB13 and SDA on PB7).
When I flash board there is the following message in console (debug mode enabled):
NOTICE: CPU: STM32MP135F Rev.Y
NOTICE: Model: STMicroelectronics custom STM32CubeMX board - openstlinux-5.15-y octo-kirkstone-mp1-v22.11.23
ERROR: nvmem node board_id not found
INFO: PMIC version = 0x21
INFO: Reset reason (0x35):
INFO: Power-on Reset (rst_por)
INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe0000
INFO: FCONF: Reading firmware configuration information for: stm32mp_io
INFO: Using USB
INFO: Instance 2
INFO: Boot used partition fsbl1
NOTICE: BL2: v2.6-stm32mp1-r2.0(debug):v2.6-dirty(a1f02f4f)
NOTICE: BL2: Built : 13:14:26, Nov 23 2021
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 400000kHz
ERROR: DDR expected freq 400000 kHz, current is 530666 kHz
PANIC at PC : 0x2ffe588f
Exception mode=0x00000016 at: 0x2ffe588fConfiguration files are generated from STM32CubeMX 6.9.1 project and I noticed strange values for DIVR2 PLL that is used after by DDRPHYC. Values are with comma and I don't understand why 24MHz / 3 (DIVM2) x 66 (DIVN2) / 2 (figure 61 RM0475 Rev 1) / 1 (DIVR2) = 530.666922 instead of 264 MHz.

I tried to use generated files from STM32MP135F-DK for PLL section but unfortunately it is the same problem. I also checked HSE configuration is activated in tf-a:
clk_hse: clk-hse {
clock-frequency = <24000000>;
st,digbypass;
/* USER CODE BEGIN clk_hse */
/* USER CODE END clk_hse */
};Do you have any idea to solve this problem?
Thanks for your help.
Vincent



