arduino - 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);
}
启用的标志为
- Usart 支持:启用(通用串行)
- USB 支持:CDC 泛型(也尝试不使用泛型)
- USB 速度:低速/全速
- 优化:调试(-g)
如何解决这个 USB Stall 问题?
解决方案
推荐阅读
- api - 带有“无法取消设置字符串偏移”的 Shopware 产品 API 响应
- python - 使用 Selenium 抓取时出现 StaleElementReferenceException 问题
- oop - 状态模式:基于多个字段以及它们的值和状态值之间的一致性来更改对象行为
- android - Android IllegalArgumentException:fragment_XXX 的标签无效。收到:layout-sw600dp/fragment_XXX_0
- python - Excel 数据中特定单元格的 if 语句
- c++ - 从 QtCreator 中的 .pro 文件更改运行环境路径
- android - 如何修复/转移 Android R 的 TextInputEditText 的移位行为
- docker - 我们如何为 Docker Hub 中的 docker 镜像名称实现自动完成?
- html - 使图像响应
- python - Django Rest 框架:创建 API