RT-Thread / RT-Thread/rt-thread
【BUG】 STM32F4 USBD 无法枚举
Open
Nobody has claimed this yet.
bug
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
开发环境
- 野火骄阳 STM32F407
- 使用Rt-thread Studio 创建STM32F407 工程, 使用
4.0.24.0.34.1.03.15 lts - 使用STM32CubeMx 创建项目 配置USB RCC
- RT-thread Setting 设置
以上步骤都相同的时候,使用rt-thread lastest 就可以正常枚举USB,有熟悉的人知道 具体是那些地方发生一改变么?
已经尝试的步骤
- 拷贝 lastest 中的 STM32 LIB
- 更换 rt-thread/components/drivers/usb 中的 USB core lib
- 更换 driver 中的
drv_usbd.c
到 4.0.2版本中都无法正常枚举?
现在非常疑惑,最新发布的4.1.0 也无法正常枚举
我已经把自己的代码移植到 lastest上了。USB可以正常枚举,所以应该不是我自己的代码引起USB出现无法枚举的问题。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare the working latest version with RT-Thread 4.0.2, 4.0.3, 4.1.0, and 3.15 for the STM32F407 USB path. Start with components/drivers/usb and driver/drv_usbd.c, including the STM32 library changes already mentioned, then identify the version difference that prevents USB enumeration and verify it on the stated STM32F407 setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100