Skip to main content
Myasu.1
Associate III
August 14, 2022
Solved

About Pin function

I would like to do UART communication using nucleo l4r5zi.

I would like to do the pin setting, but I do not know how to do that.

​

Please let me ask the following two questions here.

1.

Is my understanding correct that the pin settings for CN7, CN8, CN9 and CN10 of the nucleo l4r5zi have already been set and the pin settings are listed in table 11 on p36 of the manual below?

STM32-Nucleo-144-User-Manual.pdf

​

2.

Since the functions of CN11 and CN12 are not specifically described, is it necessary to set the pins on the microcontroller side?

​

If this is correct, please answer the following.

I understand that the GPIOx_AFRH and GPIOx_AFRL are used to set the pin settings.

These register specifications※ only state AF0, but do not state which function they are actually assigned to.

How is the pin setting performed?

​

※​dm00310109-stm32l4-series-advanced-arm-based-32-bit-mcus-stmicroelectronics.pdf p347

​

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
August 14, 2022

The physical pin connectivity/wiring has been done per the schematic. Follow what's connected to the CHIP, and how it gets to the headers

The available pin function options are described in the Data Sheet for the CHIP (STM32L4R5ZI), the "Alternate Function" allows for connection internally of one of sixteen peripherals. AF 0 thru 15 settings are in secondary tables in the Data Sheet.

The AF setting is part of the GPIO configuration, see GPIO section of Reference Manual

On this part GPIOG's VCCIO2 must be enabled for the pins to work properly.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
August 14, 2022

The physical pin connectivity/wiring has been done per the schematic. Follow what's connected to the CHIP, and how it gets to the headers

The available pin function options are described in the Data Sheet for the CHIP (STM32L4R5ZI), the "Alternate Function" allows for connection internally of one of sixteen peripherals. AF 0 thru 15 settings are in secondary tables in the Data Sheet.

The AF setting is part of the GPIO configuration, see GPIO section of Reference Manual

On this part GPIOG's VCCIO2 must be enabled for the pins to work properly.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Myasu.1
Myasu.1Author
Associate III
August 20, 2022

@Community member​ 

thanks!!

I understand.