Skip to main content
Associate III
March 14, 2025
Solved

TCXO Not Supported by SUBGHz_PHY Middleware in STM32CubeMX for STM32WL5MOCHTR

  • March 14, 2025
  • 1 reply
  • 744 views

TCXO is not supported in the SUBGHz_PHY code generated by STM32CubeMX for the STM32WL5MOCHTR.  

Capture.PNG

Even with the HSE enabled in the RCC panel, this dialogue box is still shown. 

According to the datasheet, the internal clock labeled "HSE" is a TCXO, and must be configured as such. 

Even with the fix applied to the clocks within SystemClock_Config, the system fails to generate valid code.

void SystemClock_Config(void)
{
...
 RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS_PWR;
...
}

So there is an issue with the internal model within STM32CubeMX (as of 3/13/2025).

When Code is Debugged, the code always gets stuck in the function "HAL_SYSCFG_EnableVREFBUF."

Capture.PNG

Where should we go from here?

 

Best answer by STTwo-32

It was an issue identified and solved for version 6.14.0. So, you should update your STM32CubeMX To the last version.

Best Regards.

STTwo-32

1 reply

STTwo-32
Technical Moderator
March 18, 2025

Hello @biobuilder 

I've tested with the last Verion on my side and it seems to be working as expected.

STTwo32_0-1742290192522.png

Best Regards.

STTwo-32

Associate III
March 18, 2025

I am currently using STM32CubeMX V6.12.0.  I have generated code from the project file many times, but it always overwrites the RCC_OscInitStruct.HSEState to RCC_HSE_ON.  Is there an error in our configuration file?

Here is the .ioc file for reference.

STTwo-32
STTwo-32Best answer
Technical Moderator
March 18, 2025

It was an issue identified and solved for version 6.14.0. So, you should update your STM32CubeMX To the last version.

Best Regards.

STTwo-32