首页 > 解决方案 > Arduino STM32 USB初始化失速问题

问题描述

我正在Nucelo-64 L476RG板上开发,串行和 USB 以前可以与stm32duino一起工作,现在,也许我做错了什么,下面的代码停在USB_CoreInit()前面setup()

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  SerialUSB.begin(115200); // also stalls if this line is commented out

}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.print(4);
  delay(1000);
}

启用的标志为

如何解决这个 USB Stall 问题?

标签: arduinousbstm32

解决方案


推荐阅读