Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB Client fails on power up on STM32C07 #2666

Closed
gus-ghielec opened this issue Mar 3, 2025 · 6 comments
Closed

USB Client fails on power up on STM32C07 #2666

gus-ghielec opened this issue Mar 3, 2025 · 6 comments
Labels
invalid This doesn't seem right

Comments

@gus-ghielec
Copy link

Using Necleo64 with STM3232C07 support, I have this code.

void setup() {
  SerialUSB.begin();
}

void loop() {
  SerialUSB.println("Hello!");
  delay(500);
}

It works fine when loading from Arduino over DFU. However, the moment the system is reset USB will not work anymore. I suspecting an issue with USB clock initialization. USB works after DFU because USB clocks are already initialized but from a could boot USB Arduino does not work. Windows will say "unrecognized device" as teh deice is not responding to windows properly.

@fpistm
Copy link
Member

fpistm commented Mar 3, 2025

Hi @gus-ghielec
add:
while(!SerialUSB);

@fpistm fpistm added the invalid This doesn't seem right label Mar 3, 2025
@fpistm fpistm closed this as completed Mar 3, 2025
@gus-ghielec
Copy link
Author

gus-ghielec commented Mar 3, 2025

Same behavior. This code works fine when loaded over DFU but then USB unrecognized after reset.

void setup() {
  SerialUSB.begin();
  while(!SerialUSB);
}
void loop() {

}

Please reopen this issue @fpistm

@fpistm
Copy link
Member

fpistm commented Mar 3, 2025

It works fine on my side using Nucleo C071.
Which are options you used in the Arduino IDE ?

@fpistm
Copy link
Member

fpistm commented Mar 3, 2025

Just remembered that C0 USB support is not in the 2.9.0 release. It has been merged in the main after the release.
#2584
You have to wait the 2.10.0 or use the main.

@gus-ghielec
Copy link
Author

Oh ok great, thanks. This is blocking issues so any estimate when can we continue the work? Where do I look to see if the release is out yet?

@fpistm
Copy link
Member

fpistm commented Mar 3, 2025

in the coming days/weeks. Arduino IDE will warn you that an update is available for the core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
Development

No branches or pull requests

2 participants