cancel
Showing results for 
Search instead for 
Did you mean: 

TCXO Not Supported by SUBGHz_PHY Middleware in STM32CubeMX for STM32WL5MOCHTR

biobuilder
Associate II

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?

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

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.

View solution in original post

4 REPLIES 4
STTwo-32
ST Employee

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

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.

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.

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

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.

Updating to Version 6.14.0 fixed the Clock Configuration issue.  CubeMX is generating this portion correctly now.  

 

SubGHYz_PHY Middleware still does not recognize the HSE as a TCXO:

Capture.PNG

 

We have not fully meshed the FreeRTOS and SubGHZ_Phy Middleware to test whether or not this matters yet.