cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX Clock Configuration not generating any code for LSCO Source Mux

PCast.2
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Sara BEN HADJ YAHYA
ST Employee

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.

View solution in original post

7 REPLIES 7
Sara BEN HADJ YAHYA
ST Employee

Hello,

Which STM32CubeMX version are you using?

Best Regards,

Sara

PCast.2
Associate II

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 Employee

Hello again,

Could you please share with us your .ioc file?

Thanks in advance,

Sara.

PCast.2
Associate II

Hello Sara,

Attached to this post you can find it.

Regards,

Pedro.

Sara BEN HADJ YAHYA
ST Employee

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.

PCast.2
Associate II

Thank you Sara!

Sara BEN HADJ YAHYA
ST Employee

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.