cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP157D-DK1 Custom Board, Panic : I2C Error

JayHLim
Visitor

Hello,

Based on 157DAC1-DK1, my board designed using 157DAA1. 

After I confirmed boot on DK1 board using image of sd card, 

I tryed boot on my board using sd card on same DK1 Image of sd card but failed. 

My board have only one I2C (I2C4) for PMIC.  

Can you advise or solution? 

 

My error Log is that :

NOTICE: CPU: STM32MP157DAA Rev.Z
NOTICE: Model: STMicroelectronics STM32MP157D-DK1 Discovery Board
ERROR: I2C device not ready
PANIC at PC : 0x2fff1247

Exception mode=0x00000016 at: 0x2fff1247

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

Hi @JayHLim 

Starter package are only intended for ST boards, even small changes usually make them to fail.

 

Did you use same I2C4 pins for STPMIC1 (PZ4/PZ5) ? Any trouble on the schematics (e.g. pullups) ? Any supply issues ?

 

Custom board mean building a custom image (Yocto) which mean creating custom device tree (CubeMx + manual adaptations) and compiling them.

Please have a look to following wiki pages as start point:

https://wiki.st.com/stm32mpu/wiki/STM32_MPU_device_tree

https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Distribution_Package

https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_image

 

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
PatrickF
ST Employee

Hi @JayHLim 

Starter package are only intended for ST boards, even small changes usually make them to fail.

 

Did you use same I2C4 pins for STPMIC1 (PZ4/PZ5) ? Any trouble on the schematics (e.g. pullups) ? Any supply issues ?

 

Custom board mean building a custom image (Yocto) which mean creating custom device tree (CubeMx + manual adaptations) and compiling them.

Please have a look to following wiki pages as start point:

https://wiki.st.com/stm32mpu/wiki/STM32_MPU_device_tree

https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Distribution_Package

https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_image

 

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
JayHLim
Visitor

Thanks PatrickF

 

1. My board designed I2C4 pin for STPMIC1 (PH11/PH12) not PZ4/PZ5.

    My board I2C4 should be chang to PZ4/PZ5 or change device tree ?

2.  I will study your link of wiki. I had build custom device tree files and make generate code using CubeMx, but I cannot compile and write to sd card. if it is possible to compile device tree (dts files) using STM32CubeIDE, can you let me know?