2024-10-10 06:54 AM
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
Solved! Go to Solution.
2024-10-10 07:52 AM
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.
2024-10-10 07:52 AM
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.
2024-10-10 11:57 AM
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?