USART probe error
Hello,
I am using stm32mp157c-dk2 board and working on "How to exchange large data buffers with the coprocessor - example" from the wiki:
https://wiki.st.com/stm32mpu/wiki/How_to_exchange_large_data_buffers_with_the_coprocessor_-_example
I need to do some modifications on the example to be able to use a UART interface in the user application, usually I modify the device tree to enable the UART by adding the following lines to the .dts file (USART3 as an example):
&pinctrl {
...
usart3_pins_mx: usart3_mx-0 {
pins1 {
pinmux = <STM32_PINMUX('B', 10, AF7)>; /* USART3_TX */
bias-disable;
drive-push-pull;
slew-rate = <0>;
};
pins2 {
pinmux = <STM32_PINMUX('B', 12, AF8)>; /* USART3_RX */
bias-disable;
};
};
usart3_sleep_pins_mx: usart3_sleep_mx-0 {
pins {
pinmux = <STM32_PINMUX('B', 10, ANALOG)>, /* USART3_TX */
<STM32_PINMUX('B', 12, ANALOG)>; /* USART3_RX */
};
};
};
&usart3 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&usart3_pins_mx>;
pinctrl-1 = <&usart3_sleep_pins_mx>;
status = "okay";
};
this way works when I do it with the starter package but doesn't work with the example image. I followed the "Trace and debug scenario - UART issue" topic from the wiki and I get an "okay" status for USART3:
Board $> cat /proc/device-tree/soc/serial\@4000f000/status
okay
but I am also getting a probe error -22 for USART3:
[ 0.530340] stm32-usart: probe of 4000f000.serial failed with error -22
what is wrong and how to solve this problem?
thank in advance.
Mo elhawy
