-
Notifications
You must be signed in to change notification settings - Fork 5.3k
bsp: stm32f407-micu: add onboard spi flash support #11065
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
base: master
Are you sure you want to change the base?
bsp: stm32f407-micu: add onboard spi flash support #11065
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: bsp_stm32f407-micuReviewers: Dailingxiang1 Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2025-12-18 14:26 CST)
📝 Review Instructions
|
1dfec8e to
4cd76ab
Compare
| /* #define HAL_SAI_MODULE_ENABLED */ | ||
| /* #define HAL_SD_MODULE_ENABLED */ | ||
| /* #define HAL_MMC_MODULE_ENABLED */ | ||
| /* #define HAL_SPI_MODULE_ENABLED */ |
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.
这块是不是只提交这块的修改即可,其他的感觉是格式问题
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.
勾选SPI引脚后,用CubeMX重新生成了一遍,所以整个CubeMX_Config文件夹都发生了变化
| CPPDEFINES = ['STM32F407xx'] | ||
| group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) | ||
|
|
||
| list = os.listdir(cwd) |
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.
这段代码应该是没有作用的
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.
已修改
| src = [] | ||
| path = [cwd] | ||
|
|
||
|
|
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.
删除多余的换行
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.
已删除
| #include <drv_spi.h> | ||
| #include <drv_gpio.h> | ||
|
|
||
| #if defined(BSP_USING_ON_BOARD_FLASH) |
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.
Scons脚本中已经进行了筛选,这块可以不加
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.
好的
| select BSP_USING_UART | ||
| select BSP_USING_UART1 | ||
| default y | ||
| config BSP_USING_ON_BOARD_FLASH |
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.
加个换行
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.
已添加
|
请给出测试截图 |
已给出 |

拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
This PR adds onboard SPI flash support for stm32f407-micu BSP.
你的解决方案是什么 (what is your solution)
请提供验证的bsp和config (provide the config and bsp)
]
当前拉取/合并请求的状态 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