Missing Parameter when Configuring LCO on STM32WB05TZ FW Pack V1.0.0
When configuring the LCO output on an STM32WB05TZ with STM32CubeIDE 1.16.0 using STM32Cube FW_WB0 V1.0.0, the Generated code is missing the GPIO "Alternate" parameter, as a consequence, the output does not appear in the pin.
Below is the fix that worked for me.
/*Configure GPIO pin : PB12 */
GPIO_InitStruct.Pin = GPIO_PIN_12;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
GPIO_InitStruct.Alternate = GPIO_AF1_LCO; // <----- Missing
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
Cheers,
David C.
