-
Notifications
You must be signed in to change notification settings - Fork 454
当分区数据写满后,触发gc回收flash空间时,此时按复位重启,重启后,程序会卡到触发gc回收flash空间的过程中 #349
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
Comments
我也遇到这个问题了 |
我解决了,发现是Flash的擦除问题,没擦除成功,导致一直触发GC |
怎么解决的,修改了哪些文件,我也试试,谢谢! |
你先确保 FAL 对你Flash的擦除是成功,我遇到的问题是我擦除 Flash 失败,但是我返回了擦除成功的结果的 GC,导致出现了 GC 一直触发的问题。你最好检查一下你自己实现的 FAL 的 flash 操作是不是都正确的。 |
分析了下源码的流程: |
stm32F103 512K内部flash
裸机程序测试
问题:
当分区数据写满后,触发gc回收flash空间时,此时按复位重启,重启后,程序会卡到触发gc回收flash空间的过程中flash全部擦除后,再烧写程序可以恢复正常
日志如下:
The text was updated successfully, but these errors were encountered: