cancel
Showing results for 
Search instead for 
Did you mean: 

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

DCMilla
Associate II

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.

1 REPLY 1
STTwo-32
ST Employee

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.