RT-Thread / RT-Thread/rt-thread

RTT Studio 基于芯片创建工程配置CAN设备的系统代码Bug

Open
#7,952 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
12.2k
Forks
5.4k
Avg merge
4d 12h
Merged PRs (30d)
40

Description

工具链

芯片:STM32F407
IDE: RT-Thread Studio v2.2.6
RT-Thread版本 4.1.1

复现步骤

ce4001d4f9c4ea1f3e433c363eef097
image
image
image
image

编译报错

image
image
image

检查后发现上图drv_can.c中引用的两个宏与can.h中的不一样,将can.h中的宏替换drv_can.c中报错的宏后编译成功。这是系统生成代码出错了吗?希望RT-Thread Studio官方能尽快解决这个问题。

Contributor guide

Open the contributing guide

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.

Research direction

Reproduce the CAN project with STM32F407, RT-Thread Studio v2.2.6, and RT-Thread 4.1.1. Compare the macro references in the generated drv_can.c with those defined in can.h; done means the generated project builds without manually replacing the macros.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.