Skip to main content
ONach.1
Associate
August 9, 2022
Question

STM32F767 USB OTG. USB device not recognized, error 2B (43).

  • August 9, 2022
  • 2 replies
  • 1285 views

I'm using Nucleo F767ZI. 

I'm running the default program composed by CubeMX (all is up to date).

No errors in the MCU side (USB init etc.)

I also define 3 UARTS (3, 4 and 7), I2C1, SPI3, DAC, ADC3. No conflicts.

Heap 0x1000. Stack: 0x600.

Clock: HSE Bypass clock source (STLink oscillator), LSE disables.

USB OTG FS global interrupt is enabled (preemption priority 5, sub priority 0).

I tried with and without activate SOF and activate VBUS.

In windows 10 I have installed USB driver en.stsw-stm32102.

I have not attached the ioc file due to error in this site.

Please let me know what can I do in order to find the problem.

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
August 9, 2022

Debug as usually.

JW

ONach.1
ONach.1Author
Associate
August 9, 2022

Thank you, it was a goot article, but the problem not solved.

Ghofrane GSOURI
Technical Moderator
August 11, 2022

Hello @ONach.1​ 

Thank you for raising this question.

I tried to reproduce the issue with similar setting as yours and I can propose 2 points to check

  • I see that you configured the clock as HSE Bypass but try verify the exact frequency for your board (8MHz expected value)
  • Second I found that the heap size you are using is not enough so I test my project with a heap size equal to 0x2000

Try to use those parameters in your project and if the issue still exist don't hesitate to reply.

Hope that my answer gives some help.

Ghofrane.

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.