Skip to main content
Associate III
Jan 10, 2024 6:37 AM UTC
Solved

STM32WB55RG USB Device Not Recognize by Comp

Hi,

I'm trying to use usb device of my STM32WB55RG Nucleo board but when I connect my device to computer, I got a "USB Device not recognized" error. I used "LL_HSEM_1StepLock( HSEM, 5 )" function before APPE init. How can i get rid of this error?

Best regards.

This topic has been closed for replies.
Mickey_PiperBest answer
Associate III
Jan 17, 2024 1:03 PM UTC

Hi,

I solve the problem. The problem occurs to the corrupt project creation. I updated my cubemx version (also my stm32wb software package) and add the both functions in "PeriphCommonClock_Config(void)".

Best regards.

3 replies

STTwo-32
ST Technical Moderator
Jan 11, 2024 7:57 AM UTC

Hello @Mickey_Piper 

First, I suggest you take a look at the following post. You may have the same issue.

If not, Can you give more details (what happen when you don't call the LL_HSEM_1StepLock( HSEM, 5 ),...).

 

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.
Associate III
Jan 15, 2024 10:26 AM UTC

Hi @STTwo-32 ,

When I don't call the "LL_HSEM_1StepLock( HSEM, 5 )", CPU2 is use this so USB cannot be usable. I looked some posts and they said you have to lock this HSEM. I add this function but error still occurs. I looked your shared post and add both functions[(LL_HSEM_1StepLock( HSEM, 5 )) and (LL_RCC_HSI48_Enable())] in "PeriphCommonClock_Config(void)" but I still get the error.

Best regards.

Mickey_PiperAuthorBest answer
Associate III
Jan 17, 2024 1:03 PM UTC

Hi,

I solve the problem. The problem occurs to the corrupt project creation. I updated my cubemx version (also my stm32wb software package) and add the both functions in "PeriphCommonClock_Config(void)".

Best regards.