Skip to main content
Lama
Associate II
January 14, 2020
Solved

NUCLEO-L476RG GPIO port D ?

  • January 14, 2020
  • 4 replies
  • 1463 views

When I generate code with CubeMX the MX_GPIO_Init code contains:

 /*Configure GPIO pin : PD2 */

 GPIO_InitStruct.Pin = GPIO_PIN_2;

 GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;

 GPIO_InitStruct.Pull = GPIO_NOPULL;

 HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);

There is no port D afaik.

STM32CubeIDE 1.2.0

CubeMx 5.5.0-RC6

Seems a bug.

This topic has been closed for replies.
Best answer by Tesla DeLorean

>>There is no port D afaik.

PD2 is pin 54, of the 64-pin package, needed for SDMMC

https://www.st.com/resource/en/datasheet/stm32l476je.pdf

4 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
January 15, 2020

>>There is no port D afaik.

PD2 is pin 54, of the 64-pin package, needed for SDMMC

https://www.st.com/resource/en/datasheet/stm32l476je.pdf

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

Correct, I missed that one. Thnx

waclawek.jan
Super User
January 15, 2020

... unless it's the SMPS-variety (-P suffixed) 'L476 (which is a nasty gotcha), but AFAIK there's no such on the Nuclei.

And I thought the only useful feature of CubeMX is the pinout display (inherited from the MicroXplorer).

JW

Lama
LamaAuthor
Associate II
January 15, 2020

Yes, I noticed. Thnx