Skip to main content
Associate II
September 10, 2024
Solved

Missing Parameter when Configuring LCO on STM32WB05TZ FW Pack V1.0.0

  • September 10, 2024
  • 2 replies
  • 625 views

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.

Best answer by STTwo-32

Hello @DCMilla 

This behavior has been solved on the last version of the STM32CubeMX V6.13.0.

Best Regards.

STTwo-32

2 replies

STTwo-32
Technical Moderator
September 10, 2024

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 

STTwo-32
STTwo-32Best answer
Technical Moderator
December 2, 2024

Hello @DCMilla 

This behavior has been solved on the last version of the STM32CubeMX V6.13.0.

Best Regards.

STTwo-32