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.
您好!
我的客户正在 RAM 中调用 Flash_Eras()函数(为了清零,Flash_Eras()函数本身位于 ROM 中,但调用 Flash_Eras()的文本位于 RAM 中),通过单击“步入”,我们可以看到它最终会转至位于闪存中的0x3F702A。 这是正常的吗? 导致此类行为的原因是什么?
我们能否提供 Flash_Eras()的原始代码?
周华德、您好!
客户在不单步执行的情况下运行代码时是否遇到问题?
我建议查看 c2000ware 中的 flash_API 示例、并比较如何复制 API 函数(从 ROM 或闪存、该示例具有两种编译配置)并从 RAM 运行。 示例中使用了原始 FLASH_API。
C:\ti\c2000Ware_2_00_00_02\libraries\flash_api\f2803x\example_ccsv5
应在 main()中包含 Memcopy 函数:
//我们还必须将所需的用户界面函数复制到 RAM。 Example_Memcopy (&RamfuncsLoadStart、&RamfuncsLoadEnd、&RamfuncsRunStart);
最棒的
Kevin