cancel
Showing results for 
Search instead for 
Did you mean: 

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

ONach.1
Associate

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.

3 REPLIES 3

Debug as usually.

JW

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

Ghofrane GSOURI
ST Employee

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.