2024-09-10 11:24 AM
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.
Solved! Go to Solution.
2024-12-02 01:51 AM
Hello @DCMilla
This behavior has been solved on the last version of the STM32CubeMX V6.13.0.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-09-10 11:42 AM - edited 2024-09-11 05:09 AM
Hello @DCMilla
Thank you so much for repoorting this issue
I confirm this issue on my side. I've escalated to the concerned team for correction on the coming releases (under internal ticket number 190763).
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-12-02 01:51 AM
Hello @DCMilla
This behavior has been solved on the last version of the STM32CubeMX V6.13.0.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.