-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add BSP Support for stm32f407-micu #10912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: bsp_stm32Reviewers: Liang1795 hamburger-os wdfk-prog Changed Files (Click to expand)
🏷️ Tag: maintainersReviewers: Rbb666 kurisaW Changed Files (Click to expand)
🏷️ Tag: workflowReviewers: Rbb666 kurisaW supperthomas Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2025-11-11 11:55 CST)
📝 Review Instructions
|
3615e8b to
13758f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds BSP (Board Support Package) support for the STM32F407-MICU development board to RT-Thread. The STM32F407-MICU is an educational development board based on the STM32F407VET6 microcontroller. The implementation includes basic system configuration, peripheral drivers (GPIO, UART), and support for three major toolchains (MDK, GCC, IAR).
Key changes:
- Complete BSP infrastructure including build configurations for MDK/GCC/IAR toolchains
- System clock configuration using HSI with PLL to achieve 168 MHz operation
- Basic peripheral driver support (GPIO, UART1 console)
Reviewed Changes
Copilot reviewed 34 out of 42 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| rtconfig.py | Build configuration supporting GCC, Keil MDK, and IAR toolchains |
| rtconfig.h | RT-Thread kernel and component configuration header |
| project.uvprojx/uvproj/uvoptx | Keil MDK project files for ARM Compiler 6 and v5 |
| project.eww | IAR workspace configuration |
| board/linker_scripts/* | Linker scripts for all three toolchains (GCC/MDK/IAR) |
| board/board.h/c | Board initialization and system clock configuration |
| board/Kconfig | BSP configuration options for peripheral drivers |
| board/SConscript | SCons build script for board-specific files |
| applications/main.c | Sample application demonstrating LED blinking |
|
已添加,谢谢提醒> 还请添加此BSP到ci看护:https://github.com/RT-Thread/rt-thread/blob/master/.github/ALL_BSP_COMPILE.json |
|
请作者压缩一下提交,保留一个commit即可 |
5c35de8 to
df34320
Compare
收到,已合并 |
|
另外,作者如果后续会持续维护此BSP的话,可以将您的账号添加到对应的maintainer字段,方便后续维护:https://github.com/RT-Thread/rt-thread/blob/master/MAINTAINERS |
Update bsp/stm32/stm32f407-micu/rtconfig.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Update bsp/stm32/stm32f407-micu/rtconfig.h Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Update bsp/stm32/stm32f407-micu/project.uvproj Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Update bsp/stm32/stm32f407-micu/project.uvproj Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Update bsp/stm32/stm32f407-micu/board/board.h Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> add ci Delete bsp/stm32/stm32f407-micu/project.uvgui.dlx modified: MAINTAINERS deleted: bsp/stm32/stm32f407-micu/figures/board.png.png deleted: bsp/stm32/stm32f407-micu/project.uvopt modified: bsp/stm32/stm32f407-micu/project.uvoptx modified: bsp/stm32/stm32f407-micu/project.uvprojx
bc39f63 to
9a50bd0
Compare
拉取/合并请求描述:(PR description)
[
提交此PR的原因:
解决的问题:
已测试的环境:
MDK543 ArmClang v6.24
arm-none-eabi-gcc Scons构建
IAR 8.32.1
代码已经过astyle工具规范
BSP: bsp/stm32/stm32f407-micu
.config: 本 PR 未对默认配置做修改,使用 BSP 目录下现有的默认
.config即可完成编译和验证。action: https://github.com/ZKZzhu/rt-thread/edit/bsp/stm32f407-micu/.github/workflows/bsp_buildings.yml
(由于本人账号出现billing issue错误无法直接编译,故请好友fork我的仓库进行测试,望见谅)
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up