Skip to main content
Anandbalu
Associate II
January 20, 2023
Solved

How to enable both BLE and USB (DFU mode) in STM32WB5MMG using STMCubeIDE?

We made a custom PCB board using STM32WB5MMG. We tried connecting BLE and USB (DFU mode) together using STMCubeIDE, but if we enable BLE USB is not working. But without both are working well independently. We are new to this controller. So we didn't know how to enable both.

This topic has been closed for replies.
Anandbalu
AnandbaluBest answer
Associate II
January 23, 2023

Hello @Sarra.S​ 

Thank you for your reply,

Now both are working. We enable both in .ioc and resolve the clock as per IDE's suggestion. and we add the below couple of lines in the "PeriphCommonClock_Config(void)" function

LL_HSEM_1StepLock( HSEM, 5 );

LL_RCC_HSI48_Enable();

Thanks,

Ananthakumar

2 replies

ST Employee
January 20, 2023

Hello @Anandbalu​ 

Take a look at these two documents :

  1. BLE security with STM32WB MOOC
  2. USB hardware and PCB guidelines using STM32 MCUs

Hope that helps!

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.
Anandbalu
AnandbaluAuthorBest answer
Associate II
January 23, 2023

Hello @Sarra.S​ 

Thank you for your reply,

Now both are working. We enable both in .ioc and resolve the clock as per IDE's suggestion. and we add the below couple of lines in the "PeriphCommonClock_Config(void)" function

LL_HSEM_1StepLock( HSEM, 5 );

LL_RCC_HSI48_Enable();

Thanks,

Ananthakumar