Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
flash_driver里的驱动是同步的,这个函数里面是有while循环等待的,你看一下rcu的rssr寄存器看看复位原因是什么
1、可以通过RCU.RSSR寄存器查看复位原因 2、确认一下程序有没有进入hardfault
Xgq 看你开的有wdg模块,可能是擦写的时候wdg超时了,可以把超时时间拉大一点;
yangke 在 动态加载flash_driver.hex 中说:
RCU.RSS 是Hardfault了,这个有什么办法解决?flash_driver.hex能不能自己写逻辑重新生成?由样例工程吗?
haiyang wdg大概2s,没有出发wdg复位
Xgq 写之前关一下全局中断试试,写完再打开,可能是被中断打断了;
进入hardfault的工程能提供一下吗
yangke LV_Boot.zip 这个工程使用的时钟频率为32MHz,flash_driver的内容与频率是否有关联?
haiyang 尝试关全局中断,寄存器的数据还是一样的
haiyang yangke https://forum.ytmicro.com/post/4936 的flash_driver_bin (2).zip中MC0的工程使用demo板 Flash操作功能也没有运行起来,麻烦协助一下,项目挺急的
快速上手云途开发生态
发帖前请查看
帮助改进和优化YT CONFIG TOOL,有机会抽取YTM32B1ME0 EVB哦...