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.

[参考译文] TMS320F28032:Flash_Erase 函数将跳转到闪存区域

Guru**** 2024750 points
Other Parts Discussed in Thread: C2000WARE
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/819164/tms320f28032-flash_erase-function-will-jump-to-flash-area

器件型号:TMS320F28032
主题中讨论的其他器件:C2000WARE

您好!

我的客户正在 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