-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[bsp]勘误:bluepill(stm32f103c8t6)的flash是64kb #10258
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
原bsp设置的flash是128kb,可能会出问题,详见README_zh:在出厂时,STM32F103C8T6仅对前64KB进行了测试和认证,因此官方文档中仅标注为64KB。
请问你这个在使用的时候,有实际遇到异常吗? |
目前没有(因为没有烧录过超过70KB的程序)。官方datasheet确实是写的64KB,原bsp的FLASH是按照CBT6写的(包括keil模板),我这里做出了修改。超过64KB的Flash虽然理论上可以访问,但是生产时厂商是不会测试超出的部分的,可能会出问题。个人认为flash的设置应该与官方手册的64kb一致。 此外,请问failing check(Auto Review Assistant / assign-reviewers (pull_request_target)Failing after 4s)会不会影响merge呀,新人第一次pr,不知道怎么改,这个failing查了一下貌似和我的改动关系不大? |
有一些程序之前能放下的,现在放不下了 |
/opt/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: region `ROM' overflowed by 12332 bytes 这个如果改小了的话很多应用就不太能用了,建议可以提交一些常用的yml配置,方便大家使用,具体参考stm32f407-rt-spark |
请问使用在rtconfig.py中以if else进行链接脚本的控制的方案可以吗?
这样的话用户可以自行选择链接的是64kb还是128kb的脚本,缺点是需要多存一份link。 如果这个方案不可行,我再看看yml配置可以吗?或者双管齐下? |
这个完全适配实际上不是很好弄,还有gcc的,还有keil project templete里面的,你就先用128KB的吧,遇到问题,再用吧。用128KB有什么影响吗,或者真实遇到问题再复现看看?64KB,实际上跑不了多少东西。多一点,能做的事情更多一些。 |
我觉得你多做一些yml配置给大家用起来,还是挺实用的。 |
好的好的,那我看看yml配置~ |
📌 Code Review Assignment📊 Current Review Status (Last Updated: 2025-05-12 02:41 UTC)📝 Review Instructions
|
原bsp设置的flash是128kb,可能会出问题,详见README_zh:在出厂时,STM32F103C8T6仅对前64KB进行了测试和认证,因此官方文档中仅标注为64KB。
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
该BSP原Flash设置为128KB,但是STM32F103C8T6实际Flash仅有64KB。
你的解决方案是什么 (what is your solution)
修改链接脚本、keil5 template文件、board.h文件为正确的值
请提供验证的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