Panic during custom board bring-up
We are trying to bring-up our custom board and every step of the way we see panic messages, we need some direction in understanding what went wrong.
Our board has the following:
Processor: STM32MP157FACx
QSPI NAND flash memory is our boot device (AS5F18G04SND)
PMIC: STPMIC1B
DDR memory LPDDR - 32-bit - 128MB memory.
All the device trees were generated using the latest CubeMx.
Issue1:
We had he first panic when flashing partition 1. When the PMIC node in device tree was set as below for buck 1 it fails in flashing partition 1.
vddcore:buck1{
regulator-name = "vddcore";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
regulator-always-on;
regulator-initial-mode = <0>;
regulator-over-current-protection;
};
However if I change it to the one below with the max voltage set to 1.35V it completes flashing partition 1 and fails in partition 3.
vddcore:buck1{
regulator-name = "vddcore";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1350000>;
regulator-always-on;
regulator-initial-mode = <0>;
regulator-over-current-protection;
};
We do not want to max voltage as 1.35V because our clock frequency will not be running at 800MHz. We will be limiting it to ~400MHz, so a 1.2V should be ideal.
Can someone help me understand why the ROM code causes panic when the buck 1 max voltage is not 1.35V?
Issue2:
When flashing partition 3, it causes the next panic where it is exiting to normal world, however its trying to access memory address beyond the DDR memory (size is 128MB = 0x8000000).
INFO: SP_MIN: Preparing exit to normal world
ERROR: Illegal access to 0xc8000000:
ERROR: FAIL_ID = 0x4c0
ERROR: Non-Secure
ERROR: Privilege
ERROR: Read
PANIC at PC : 0x2ffc9b61
Exception mode=0x00000016 at: 0x2ffc9b61
The DDR device tree was also generated by the latest CubeMx, so I'm assuming it should have done correctly, we are not able to figure out what is happening here.
Any help is much much appreciated.
Thanks!
