[Bug] GD32 CAN驱动mailbox判空时寄存器使用错误
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 66/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- c
- Domain
- embedded-iot
Research direction
Start in the GD32 CAN device driver for the GD32F407 and find the mailbox-free check described in the issue. Verify which register holds mailbox status, then correct the check to use CAN_TSTAT instead of CAN_STAT. Done means the mailbox availability check reads the correct register; the payload does not name a specific source file or test.
Written by the indexing model from the issue text.
Description
RT-Thread Version
V5.1.0
Affected area
Device drivers
Hardware/BSP vendor
GD32
Architecture
ARM / AArch64
Board and hardware details
GD32F407
Develop Toolchain
GCC
Describe the bug
代码中使用CAN_STAT寄存器判断mailbox是否空闲,实际上mailbox状态在寄存器CAN_TSTAT内。
Other additional context
No response
- Dominant language
- C
- Stars
- 12.4k
- Forks
- 5.5k
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 80
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from RT-Thread/rt-thread
-
action bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RT-Thread/rt-thread#12106 · 1 comment ·
Maintainers usually reply within 2 days
-
action bug
Difficulty 1/5 1-3 hours Newbie friendliness 84/100
RT-Thread/rt-thread#12102 · 1 comment ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
RT-Thread/rt-thread#11951 · 2 comments ·
Maintainers usually reply within 2 days
-
[Bug] [libc] timer_gettime 拆秒前将总纳秒截断为 uint32_t,剩余时间查询错误May be free again @Yunlk claimed this 39 days ago, and no pull request is open. Openin progress
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
RT-Thread/rt-thread#11924 · 7 comments · 1 assignee ·
Maintainers usually reply within 2 days
-
[Bug] dfs_v2 tmpfs: ftruncate(fd, 0) frees the file buffer but reports success — use-after-free read/write and double free from a legal POSIX callPossibly taken @remukisama claimed this 43 days ago. Openin progress
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RT-Thread/rt-thread#11902 · 4 comments · 1 assignee ·
Maintainers usually reply within 2 days
All issues in RT-Thread/rt-thread
Similar issues
-
docs
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
Maintainers usually reply within 13 days
-
threadpool: a failed `pthread_cond_wait` makes Mlucas hang instead of stoppingPossibly taken @leinardi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
primesearch/Mlucas#398 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
slice
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Life-Framework/Life-Framework#6380 · 1 comment ·
Maintainers usually reply within 1 day