2026-03-19 7:31 AM - last edited on 2026-04-15 7:58 AM by Sara BEN HADJ YAHYA
See Inconsistent pin naming for CubeMX - does the same apply to CubeMX2 ?
(Cross-posting at the request of @Ghofrane GSOURI; again, no label available for "Suggestions")
Solved! Go to Solution.
2026-03-20 4:54 AM
Hi
We have checked the generated code, and it should be solved in CubeXM2. The defines is now called:
/** Primary aliases for RCC_OSC_IN pin */
#define PH0_OSC_IN_PORT HAL_GPIOH
#define PH0_OSC_IN_PIN HAL_GPIO_PIN_0
/** Primary aliases for RCC_OSC_OUT pin */
#define PH1_OSC_OUT_PORT HAL_GPIOH
#define PH1_OSC_OUT_PIN HAL_GPIO_PIN_1
So there is consistency in the naming. If you find any non consistent naming schemes, please let us know, so we can get them fixed!
2026-03-20 4:54 AM
Hi
We have checked the generated code, and it should be solved in CubeXM2. The defines is now called:
/** Primary aliases for RCC_OSC_IN pin */
#define PH0_OSC_IN_PORT HAL_GPIOH
#define PH0_OSC_IN_PIN HAL_GPIO_PIN_0
/** Primary aliases for RCC_OSC_OUT pin */
#define PH1_OSC_OUT_PORT HAL_GPIOH
#define PH1_OSC_OUT_PIN HAL_GPIO_PIN_1
So there is consistency in the naming. If you find any non consistent naming schemes, please let us know, so we can get them fixed!