请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320F28069 主题中讨论的其他器件:C2000WARE
F28069上运行的程序可以写入闪存吗? (即存储程序代码的闪存)
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
F28069上运行的程序可以写入闪存吗? (即存储程序代码的闪存)
Thomas、
这里的规则是您不能在代码运行时对闪存进行编程。
现在、您可以在执行期间对闪存进行重新编程、但是在重新编程的过程中、代码需要从 RAM 运行。 您可以通过 API 调用将一小部分代码从闪存复制到 RAM、然后跳转到该代码以执行以上操作。 擦除/编程完成后、您可以跳回闪存。
我们在 C2000Ware C:\ti\c2000\c2000\C2000Ware_4_03_00_00\device_support\f2806x\examples\c28\flash_programming 中有一个相关示例、或者如果您愿意、以下是云链接。
此致!
Matthew