Skip to main content
USama1
Associate II
June 26, 2019
Solved

STM32MP157-DK2: UART7 is not working .

  • June 26, 2019
  • 2 replies
  • 1105 views

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.

This topic has been closed for replies.
Best answer by PatrickF

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.

2 replies

PatrickF
PatrickFBest answer
Technical Moderator
June 27, 2019

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 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent
USama1
USama1Author
Associate II
June 27, 2019

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