cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-L476RG GPIO port D ?

Lama
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions

>>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
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

4 REPLIES 4

>>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
Up vote any posts that you find helpful, it shows what's working..

... 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

Correct, I missed that one. Thnx

Yes, I noticed. Thnx