在components\fal\samples\porting\新增norflash移植示例 #10068
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
如果使用SFUD 由于原仓库已经较长时间没有维护 导致代码并不支持目前一些常见的国产FLASH品牌 比如GD25Q128
如果不使用SFUD 对于那些拿着cubemx生成的spi驱动和正点原子提供的norflash驱动的小伙伴来说 他们可能不知道如何去修改驱动使之适配他们的norflash,这份PR就是为了提供一个简单的移植示例。
我在使用正点原子提供的norflash驱动的时候由于水平有限 看不懂他们是如何实现的任意写的函数 于是自己重现实现了一遍 在实现的过程中 受益良多 我提供的移植示例程序逻辑较为清晰 适合刚入门的小伙伴学习
如果这份PR通过的话 我打算写一个FAL驱动移植教程 把自己的收获分享给大家
你的解决方案是什么 (what is your solution)
提供一个简单的移植示例
请提供验证的bsp和config (provide the config and bsp)
由于RTT的BSP较为庞大 对于某些群体可能只希望自己使用cubemx来生成他们的BSP
所有我不提供基于RT-studio的示例工程 我给出的工程是基于cubeMX生成的
这是github仓库链接 https://github.com/illustriousness/fal_norflash_sample
无
我仓库的git分支名为yangyanglan
]
当前拉取/合并请求的状态 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