2020-01-14 02:14 PM
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.
Solved! Go to Solution.
2020-01-14 04:38 PM
>>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
2020-01-14 04:38 PM
>>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
2020-01-14 11:35 PM
... 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
2020-01-15 01:09 PM
Correct, I missed that one. Thnx
2020-01-15 01:16 PM
Yes, I noticed. Thnx