Replies: 2 comments
-
this is what I am seeing from the logs: USBD init on controller 1, speed = Full USBD init on controller 1, speed = Full USBD Bus Reset : Full Speed USBD init on controller 1, speed = Full USBD Bus Reset : Full Speed USBD Setup Received 80 06 00 01 00 00 40 00 USBD Setup Received 00 05 21 00 00 00 00 00 USBD Setup Received 80 06 00 01 00 00 12 00 USBD Setup Received 80 06 00 02 00 00 FF 00 As I mentioned previously, this kind of works due to watchdog in place. When programming is running and USB is inserted, watchdog is triggered and afterwards USB is detected. Without the watchdog it goes into infinite loop when I try to connect USB |
Beta Was this translation helpful? Give feedback.
-
I found the issue. I was relying too much on Cubemx. It didn't generate all the interrupts that I needed. I had to manually insert them. Everything works now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Im hoping to get some insight here. I went through the dcd_stm32_fsdev.c on how to configure my microcontroller. I have STM32G4 microcontroller and I am having issue with detecting USB connection. I used CubeMX to generate the code where I make the following configurations:
Observation:
It seems that it detects USB connection only after watchdog has been triggered. When I remove the watchdog, it doesn't seem to see it and gets stuck. I found a post from 4 years ago and my settings matched to what they have to no effect. Can anyone suggest what else i can try?
Beta Was this translation helpful? Give feedback.
All reactions