cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP157-DK2: UART7 is not working .

USama1
Associate II

UART7 is not working when configured with same pin numbers as given in the STMCubeMX code.

When connected as per schematic pin config, it is working.(Corresponding code also changed)

So why is this happening like this?

Please help.

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

Hello,

STM32CubeMX setup for STM32MP157C-DK2 board does not automatically allocate Arduino peripherals on right location (as not used in our Starter Package demo and Arduino pins could be used for many usages). Simply activating UART7 make CubeMx to assign RX/TX to a free ball, without guarantee it is the one corresponding on the board schematics.

Under CubeMx, you have to assign manually the UART7_TX/RX on PE8/PE7 respectively:

  • either type PE8 (or PE7) in lower right search box to make it blinking, then right click on the ball to select the UART7 function. This work before or after UART7 enable in CubeMx.
  • or type UART7 in lower right search box to make balls blinking, then CTRL+click to drag to the correct 'blue highlighted' ball you want (i.e. PE8/PE7). This obviously only work after UART7 is enabled in CubeMx.
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

Hello,

STM32CubeMX setup for STM32MP157C-DK2 board does not automatically allocate Arduino peripherals on right location (as not used in our Starter Package demo and Arduino pins could be used for many usages). Simply activating UART7 make CubeMx to assign RX/TX to a free ball, without guarantee it is the one corresponding on the board schematics.

Under CubeMx, you have to assign manually the UART7_TX/RX on PE8/PE7 respectively:

  • either type PE8 (or PE7) in lower right search box to make it blinking, then right click on the ball to select the UART7 function. This work before or after UART7 enable in CubeMx.
  • or type UART7 in lower right search box to make balls blinking, then CTRL+click to drag to the correct 'blue highlighted' ball you want (i.e. PE8/PE7). This obviously only work after UART7 is enabled in CubeMx.
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.
USama1
Associate II

Hello Patrick,

Thank you for the clarification.

We have a more important problem in the same area. Combination of OpenAMP framework and UART7.

I created a separate question for that.

https://community.st.com/s/question/0D50X0000B09g3ySQA/stm32mp157dk2-problem-with-uart7-when-used-with-openamp-framework

This is very important for us. Please clarify.

Thank you.

Best Regards,

Upendar Reddy Sama