Skip to main content
Associate II
Sep 10, 2024 6:24 PM UTC
Solved

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.

This topic has been closed for replies.
STTwo-32
STTwo-32Best answer
ST Technical Moderator
Dec 2, 2024 9:51 AM UTC

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.

2 replies

STTwo-32
ST Technical Moderator
Sep 10, 2024 6:42 PM UTC

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.
STTwo-32
STTwo-32Best answer
ST Technical Moderator
Dec 2, 2024 9:51 AM UTC

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.