Cannot boot custom board based on STM32MP157F-DK2
Hello
We've designed a custom board based on 157F-DK2 with device tree generated from the custom CubeMX project (included in case somebody like to review it.)
After flashing it in DFU mode with the image created from openstlinux sdk, TF-A bails out of boot with message
PANIC at PC : 0x2fff1de9
Exception mode=0x00000016 at: 0x2fff1de9Now the troubleshooting guide says this probably stems from clock settings but our clock settings are similar to DK2. Interestingly if I flash the device with the official binary from SDK
I get
NOTICE: CPU: STM32MP157FAC Rev.Z
NOTICE: Model: STMicroelectronics STM32MP157F-DK2 Discovery Board
ERROR: I2C device not ready
PANIC at PC : 0x2fff0467
Exception mode=0x00000016 at: 0x2fff0467which means we are over the clock problems and there is a problem with communicating with PMIC judging by the BL code
ret = stm32_i2c_init(i2c, &i2c_init);
if (ret != 0) {
ERROR("Cannot initialize I2C %x (%d)\n",
i2c->i2c_base_addr, ret);
panic();
}
if (!stm32_i2c_is_device_ready(i2c, pmic_i2c_addr, 1,
I2C_TIMEOUT_BUSY_MS)) {
ERROR("I2C device not ready\n");
panic();
}So is the device tree generated by cubeMX is wrong or incompleteor should I go with default
DK2 device tree and add modificiations manually?
Thanks in advance
