cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP13 Board bring up issue

ravichandra_t
Associate III


We are working on a custom board (based on STM32MP135F-DK) which uses STM32MP131AAE and STPMIC1DPQR PMIC.

We are using STM32CubeProgrammer TSV Flashing service to flash the image into eMMC, in this process we are getting a PMIC Panic

 

NOTICE:  CPU: STM32MP131A Rev.Y
NOTICE:  Model: STMicroelectronics STM32MP135F-DK Discovery Board
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.8-stm32mp1-r1.0(debug):2021.05-10168-g4a52d0539d(4a52d053)
NOTICE:  BL2: Built : 11:23:27, Dec  6 2023
INFO:    BL2: Doing platform setup
INFO:    RAM: DDR3-1066 bin F 1x4Gb 533MHz v1.53
INFO:    Memory size = 0x20000000 (512 MB)
INFO:    DFU USB START...
INFO:    handle USB : Suspend int
INFO:    USB Suspend mode
INFO:    handle USB : Reset
INFO:    handle USB : Reset
INFO:    phase ID :3, Manifestation 0 at c7149d16
INFO:    Send detach request
INFO:    Receive DFU Detach
INFO:    DFU USB STOP...
INFO:    BL2: Loading image id 1
INFO:    Loading image id=1 at address 0x30006000
INFO:    Image id=1 loaded: 0x30006000 - 0x30006236
INFO:    FCONF: Reading FW_CONFIG firmware configuration file from: 0x30006000
INFO:    FCONF: Reading firmware configuration information for: mce_config
INFO:    FCONF: Reading firmware configuration information for: dyn_cfg
INFO:    FCONF: Reading firmware configuration information for: stm32mp1_firewall
INFO:    BL2: Loading image id 4
INFO:    Loading image id=4 at address 0xde000000
INFO:    Image id=4 loaded: 0xde000000 - 0xde00001c
INFO:    OPTEE ep=0xde000000
INFO:    OPTEE header info:
INFO:          magic=0x4554504f
INFO:          version=0x2
INFO:          arch=0x0
INFO:          flags=0x0
INFO:          nb_images=0x1
INFO:    BL2: Loading image id 8
INFO:    Loading image id=8 at address 0xde000000
INFO:    Image id=8 loaded: 0xde000000 - 0xde081310
INFO:    BL2: Loading image id 2
INFO:    Loading image id=2 at address 0xc0400000
INFO:    Image id=2 loaded: 0xc0400000 - 0xc040ebb8
INFO:    BL2: Skip loading image id 16
INFO:    BL2: Loading image id 5
INFO:    Loading image id=5 at address 0xc0000000
INFO:    Image id=5 loaded: 0xc0000000 - 0xc00b9ad4
NOTICE:  BL2: Booting BL32
INFO:    Entry point address = 0xde000000
INFO:    SPSR = 0x1d3
I/TC: Early console on UART#4
I/TC: 
I/TC: Embedded DTB found
I/TC: OP-TEE version: 2021.05-10168-g4a52d0539d (gcc version 10.3.1 20210621 (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29))) #6 Wed Dec  6 05:46:03 UTC 2023 arm
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: WARNING: All debug access are allowed
E/TC:0 0 Panic at core/arch/arm/plat-stm32mp1/drivers/stm32mp1_pmic.c:183 <initialize_pmic_i2c>
E/TC:0 0 TEE load address @ 0xde000000
E/TC:0 0 Call stack:
E/TC:0 0  0xde00339d
E/TC:0 0  0xde01c207
E/TC:0 0  0xde006bdb
E/TC:0 0  0xde01ac9f
E/TC:0 0  0xde01ad79
E/TC:0 0  0xde01b50f
E/TC:0 0  0xde01cff9
E/TC:0 0  0xde00326b
E/TC:0 0  0xde00019c

 

Changes done:
SDMMC1 ==> SDMMC2

I2C4_SDA ==> PB7


Are we missing anything while configuring?

1 ACCEPTED SOLUTION

Accepted Solutions

Yes, Please update the pin details as specified below as per your configuration

&gpiob {
st,protreg = < (TZPROT(7)) >;
};

 

View solution in original post

4 REPLIES 4
ravichandra_t
Associate III

Adding debug log for OPTEE-OS

 

I have the exact pin config for i2c4 and i am having the exact pmic panic error. Have you been able to solve this?

Yes, Please update the pin details as specified below as per your configuration

&gpiob {
st,protreg = < (TZPROT(7)) >;
};

 

you just saved me days of work. Thank you very much