2023-04-13 01:44 AM
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.
2023-04-13 02:23 AM - edited 2023-11-20 08:21 AM
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
USART3_TX-->PD8
USART3_RX-->PD9
Thx
Ghofrane
2023-04-13 02:26 AM - edited 2023-11-20 08:21 AM
Sorry, i forgot mention that i set it in STM32CubeIde:
2023-04-13 02:29 AM - edited 2023-11-20 08:21 AM
Also in CubeMx, when you uncheck pd8 and pd9 pins and enable usart3 it set other pins
2023-04-13 02:35 AM - edited 2023-11-20 08:21 AM
Hello again @kamil Duljas
By checking the datasheet ,and based on Table 10. STM32F756xx pin and ball definition (continued)
USART3_TX-->PB10
USART3_RX-->PB11
2023-04-13 02:49 AM
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
2023-04-13 11:01 PM
My request is:
On Nucleo F756ZG,in CubeMx, by default the pins PD8 PD9 should be set, not PB10 and PB11
2023-04-13 11:26 PM
Seems like a reasonable request, you'd think the tools would have a weighting based on the board specific pin usage.
2023-04-13 11:39 PM
Yes, for example board Nucleo L476 set pins connected with st link. It's very convenient
2023-04-17 01:50 AM
@Ghofrane GSOURI any decision in this topic?