cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55 CubeMX Configuration

ASiva.1
Associate III

I am building a wireless application (BLE) with STM32WB55CG. For that, I am planning to use HSI and LSE (LSE as RF wake up clock and HSI as CPU1 and CPU2 clock). For that, I disabled HSE in the RCC part of CubeMX. After I did that, RF becomes inactive and unselectable. How can I solve this issue to make wireless application without using HSE? (I am using STM32Cube_FW version 1.8.0)

10 REPLIES 10
TDK
Guru

The RF front end requires a 32 MHz HSE as a clock source. Probably the HSI does not meet the high speed timing requirements for Bluetooth.

0693W000006I52qQAC.png 

If you hover over something in CubeMX that is disabled, it will usually tell you why. In this case, it does exactly that.

0693W000006I530QAC.png

If you feel a post has answered your question, please click "Accept as Solution".
ASiva.1
Associate III

Yes. I understand it. But, I have another doubt regarding this. When I set the HSE as external ceramic/crystal oscillator, RF gets activated, but in the clock configuration window in Cube MX I set system clocks such that, HSE is not used anywhere in the clock configuration (HSI as CPU clock and LSE as RTC wake up clock and the system works in the P-Nucleo-WB55 development board. How does this happen when I set HSE as enabled, but not used in Cube MX clock configuration?

ASiva.1
Associate III

Yes. I understand it. But, I have another doubt regarding this. When I set the HSE as external ceramic/crystal oscillator, RF gets activated, but in the clock configuration window in Cube MX I set system clocks such that, HSE is not used anywhere in the clock configuration (HSI as CPU clock and LSE as RTC wake up clock and the system works in the P-Nucleo-WB55 development board. How does this happen when I set HSE as enabled, but not used in Cube MX clock configuration?

TDK
Guru

Is HSE activated?

Are CPU2 and HSE frequencies set to 32 MHz?

If not, show your clock configuration screen.

If you feel a post has answered your question, please click "Accept as Solution".
ASiva.1
Associate III

0693W000006I5rZQAS.png

ASiva.1
Associate III

I have activated it,but not using it to clock any CPU. I am not using it anywhere in clock configuration.

TDK
Guru

Looks like you've satisfied the requirements. I don't see any issues here. It doesn't say CPU2 should be clocked from HSE. Although perhaps this is a bug, no idea.

If you feel a post has answered your question, please click "Accept as Solution".
Khouloud ZEMMELI
ST Employee

Hello @ASiva.1​ 

Are you still facing an issue with CubeMX interface? If yes, please share your ioc file to check it.

Thanks, Khouloud

Hello @Khouloud ZEMMELI​ ,

Please find the attached .ioc file