GrumpyOldPizza / arduino-STM32L4

69 stars 60 forks source link

STM32F476RE - USB not recognized #34

Closed denisn73 closed 6 years ago

denisn73 commented 6 years ago

I'm want use ST25R3911B-DISCO board with this core. Programm downloading and normal working. But USB dsn't work, it not recognized, it no usb enumeration in windows. I'm try compiling with this and unsuccessfully:

define STM32L4_CONFIG_USB_VBUS GPIO_PIN_NONE

I'm try directly connect 5V to PA9, not happening too. What can be wrong?

GrumpyOldPizza commented 6 years ago

Have you tried:

define STM32L4_CONFIG_HSECLK 0

The board you cite is not supported, so not surprising it ain't working ;-)

Which variant did you start with ?

On Wed, Apr 4, 2018 at 5:02 AM, Denis Silivanov notifications@github.com wrote:

I'm want use ST25R3911B-DISCO board with this core. Programm downloading and normal working. But USB dsn't work, it not recognized, it no usb enumiration in windows. I'm try comment compiling with this and unsuccessfully:

define STM32L4_CONFIG_USB_VBUS GPIO_PIN_NONE

I'm try directly connect 5V to PA9, not happening too. What can be wrong?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GrumpyOldPizza/arduino-STM32L4/issues/34, or mute the thread https://github.com/notifications/unsubscribe-auth/AG4QfJ5Xh4ANr8U-a6du0PRUh-pgBZLqks5tlKgrgaJpZM4TGl5U .

denisn73 commented 6 years ago

No, but I'll try. On the board STM32L476RE, respectively, for compilation i use variant "Dragonfly" USB circuitry differs only in the absence of VBUS and ID lines

denisn73 commented 6 years ago

Tried this settings and nothing has changed:

define STM32L4_CONFIG_LSECLK 0 // 32768

define STM32L4_CONFIG_HSECLK 0 // 16000000

define STM32L4_CONFIG_SYSOPT 0 // SYSTEM_OPTION_VBAT_CHARGING

define STM32L4_CONFIG_USB_VBUS GPIO_PIN_NONE // GPIO_PIN_PA9

denisn73 commented 6 years ago

Added a pull-up resistor to the USB_DP line as well as on boards with STM32F103 and it worked! =))

GrumpyOldPizza commented 6 years ago

You need to keep STM32L4_CONFIG_LSECLK 32768

On Wed, Apr 4, 2018 at 8:41 PM, Denis Silivanov notifications@github.com wrote:

Tried this settings and nothing has changed:

define STM32L4_CONFIG_LSECLK 0 // 32768

define STM32L4_CONFIG_HSECLK 0 // 16000000

define STM32L4_CONFIG_SYSOPT 0 // SYSTEM_OPTION_VBAT_CHARGING

define STM32L4_CONFIG_USB_VBUS GPIO_PIN_NONE // GPIO_PIN_PA9

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GrumpyOldPizza/arduino-STM32L4/issues/34#issuecomment-378804207, or mute the thread https://github.com/notifications/unsubscribe-auth/AG4QfFOqjt8DV0xhaEfDO8wa6wZ4CfKnks5tlYR1gaJpZM4TGl5U .

denisn73 commented 6 years ago

I'm known, already keep it and creat separate board variant with pin names

GrumpyOldPizza commented 6 years ago

Right, but there is no external pullup required. If so, something else is badly wrong. STM32L476 has a builtin pullup.

On Wed, Apr 4, 2018 at 10:13 PM, Denis Silivanov notifications@github.com wrote:

I'm known, already keep it and creat separate board variant with pin names

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GrumpyOldPizza/arduino-STM32L4/issues/34#issuecomment-378815400, or mute the thread https://github.com/notifications/unsubscribe-auth/AG4QfBbLf_5g3qBbgcqlQFR9sDjZPtYfks5tlZn6gaJpZM4TGl5U .