Skip to main content
PCast.2
Associate
October 8, 2021
Solved

STM32CubeMX Clock Configuration not generating any code for LSCO Source Mux

  • October 8, 2021
  • 7 replies
  • 3685 views

Hi,

When selecting LSI as output for LSCO pin, and generating code with integrated STM32CubeMX, no output is seen on LSCO pin.

0693W00000FBt0wQAD.pngI have to manually add a call to this to see LSI on LSCO pin.

HAL_RCCEx_EnableLSCO(RCC_LSCOSOURCE_LSI);

When using MCO pin instead of LSCO pin, the code for source clock selection is generated correctly.

I'm using STM32CubeIDE v1.7.0. and STM32L432KCU MCU.

Thanks and kind regards,

Pedro.

This topic has been closed for replies.
Best answer by Sara BEN HADJ YAHYA

Hello @PCast.2​ ,

This issue is fixed in the latest release of STM32CubeMX ( version 6.4.0 available on https://www.st.com/en/development-tools/stm32cubemx.html).

Thanks for your contribution.

When your question is answered, please close this topic by choosing Select as Best.

Regards,

Sara.

7 replies

Sara BEN HADJ YAHYA
ST Technical Moderator
October 26, 2021

Hello,

Which STM32CubeMX version are you using?

Best Regards,

Sara

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
PCast.2
PCast.2Author
Associate
October 26, 2021

Hi Sara,

This is the info about STM32CubeMx version I found in .ioc file:

MxCube.Version=6.3.0
MxDb.Version=DB.6.0.30
ProjectManager.FirmwarePackage=STM32Cube FW_L4 V1.17.0

Best regards,

Pedro.

Sara BEN HADJ YAHYA
ST Technical Moderator
October 26, 2021

Hello again,

Could you please share with us your .ioc file?

Thanks in advance,

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
PCast.2
PCast.2Author
Associate
October 26, 2021

Hello Sara,

Attached to this post you can find it.

Regards,

Pedro.

Sara BEN HADJ YAHYA
ST Technical Moderator
October 27, 2021

Hi @PCast.2​ ,

Thanks for your feedback,

You are right, It seems that the STM32CubeMX does not generate the code to enable LSCO output, for now you have to add HAL_RCCEx_EnableLSCO(RCC_LSCOSOURCE_LSI); manually.

Your request have been reported internally, I'll keep you posted with the updates.

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
PCast.2
PCast.2Author
Associate
October 27, 2021

Thank you Sara!

Sara BEN HADJ YAHYA
ST Technical Moderator
November 29, 2021

Hello @PCast.2​ ,

This issue is fixed in the latest release of STM32CubeMX ( version 6.4.0 available on https://www.st.com/en/development-tools/stm32cubemx.html).

Thanks for your contribution.

When your question is answered, please close this topic by choosing Select as Best.

Regards,

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.