cancel
Showing results for 
Search instead for 
Did you mean: 

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

Anandbalu
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Anandbalu
Associate II

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

View solution in original post

2 REPLIES 2
Sarra.S
ST Employee

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
Associate II

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