There are no signals on pins I2C5 in CM4 mode in the custom device tree.
- September 28, 2020
- 1 reply
- 1031 views
Hello.
I created a custom device tree in CubMH and added its instructions "How to create your own machine" (https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_machine)
I wanted to run I2C5 in production mode. Running my code stops CM4 and CA9, which then leads to a reboot. At the same time, there are no signals on the pins.
Running the example I2C_TwoBoards_ComIT (STM32CubeMP1 / Projects / STM32MP157C-DK2 / Examples / I2C / I2C_TwoBoards_ComIT) CM4 loops at the following code fragment:
while (HAL_I2C_GetState (& hi2c5)! = HAL_I2C_STATE_READY)
{
}
In this case, CA9 is working normally.
In engineering mode, my code and example code work fine, signals appear on pins.
I2c5 setup:
m4_i2c5_pins_mx: m4_i2c5_mx-0 {
pins {
pinmux = <STM32_PINMUX('A', 11, RSVD)>, /* I2C5_SCL */
<STM32_PINMUX('A', 12, RSVD)>; /* I2C5_SDA */
};
};
&m4_i2c5{
pinctrl-names = "default";
pinctrl-0 = <&m4_i2c5_pins_mx>;
status = "okay";
/* USER CODE BEGIN m4_i2c5 */
/* USER CODE END m4_i2c5 */
};
I attach the device tree file.
