[Bug] GD32 CAN驱动mailbox判空时寄存器使用错误

Open Beginner friendly
#12,109 3 comments 0 reactions 0 assignees View on GitHub

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

Arch: ARM/AArch64 BSP BSP: GD32 bug Component component: drivers
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

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RT-Thread/rt-thread

All issues in RT-Thread/rt-thread

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.