Skip to main content
Senior III
April 13, 2023
Question

Wrong USART3 pins on Nucleo-F756ZG

  • April 13, 2023
  • 11 replies
  • 3149 views

Hi,

On my Nucleo-F756ZG, when I generate code for USART3 that's by default connected to ST-LINK , Cube sets pins for morpho connector (PB10 PB11) instead of alternate function (PD8 PD9). I also use Nucleo-L476RG and for this board, Cube set alternate funtion pin for Usart2 default connected to ST-LINK.

This topic has been closed for replies.

11 replies

Ghofrane GSOURI
Technical Moderator
April 13, 2023

Hello @kamil Duljas​ 

First let me thank you for posting .

I checked with CubeMX 6.8.0 and this is what I got concerning USART3 pins on Nucleo-F756ZG


_legacyfs_online_stmicro_images_0693W00000bi1IHQAY.pngUSART3_TX-->PD8

USART3_RX-->PD9

Thx

Ghofrane

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.
Senior III
April 13, 2023

Sorry, i forgot mention that i set it in STM32CubeIde:


_legacyfs_online_stmicro_images_0693W00000bi1KwQAI.png

Senior III
April 13, 2023

Also in CubeMx, when you uncheck pd8 and pd9 pins and enable usart3 it set other pins


_legacyfs_online_stmicro_images_0693W00000bi1LaQAI.png

Ghofrane GSOURI
Technical Moderator
April 13, 2023

Hello again @kamil Duljas​ 

By checking the datasheet ,and based on Table 10. STM32F756xx pin and ball definition (continued)


_legacyfs_online_stmicro_images_0693W00000bi1NRQAY.pngUSART3_TX-->PB10

USART3_RX-->PB11

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.
Senior III
April 13, 2023

I know and it is ok. I didin't say that the pins is completely wrong. I notice that on Nucleo L476 after choose USART2 CubeMx is setting pins connected to st-link, but on F756ZG Not. The User must find alternate funtion for USART3 there are connected with ST-LINK. In my opinion it is not consist and sure it is not user friendly

Senior III
April 14, 2023

My request is:

On Nucleo F756ZG,in CubeMx, by default the pins PD8 PD9 should be set, not PB10 and PB11

Tesla DeLorean
Guru
April 14, 2023

Seems like a reasonable request, you'd think the tools would have a weighting based on the board specific pin usage.​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Senior III
April 14, 2023

Yes, for example board Nucleo L476 set pins connected with st link. It's very convenient

Senior III
April 17, 2023

@Ghofrane GSOURI​ any decision in this topic?

Senior III
April 20, 2023

@Ghofrane GSOURI​ ?

Senior III
April 27, 2023

@Ghofrane GSOURI​ ? Could you answer?

Tesla DeLorean
Guru
April 27, 2023

@Sara BEN HADJ YAHYA​ 

Not sure whom to flags this with.

Needs some Board Level Awareness related to suggested pin defaults for peripherals. Will lead to less mistakes, and more code ​working on first try.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
ST Employee
April 27, 2023

Hello @Community member​ ,

@Ghofrane GSOURI​  will investigate this issue and provide an answer asap.

Sara.

Senior III
May 11, 2023

what's up?