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.

[参考译文] TMS320F28379D:如何将 FPU 代码加载到闪存中、但在 RAM 中运行

Guru**** 2589280 points
Other Parts Discussed in Thread: C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1168898/tms320f28379d-how-to-let-fpu-code-load-into-flash-but-run-at-ram

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

大家好、

以下是客户可能需要您帮助的一些问题:

使用闪存时、如何将 FPU 程序移动到 RAM?

谢谢、此致

耶鲁李

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Yale、

    可以使用 指令"memcpy (&RamfuncsRunStart、&RamfuncsLoadStart、(size_t)&RamfuncsLoadSize);"。 这将加载分配给链接器文件中.TI.ramfunc 段的函数。 这是使用"#pragma CODE_SECTION ( 、".TI.ramfunc");"。 虽然该示例不适用于 F2837xD 器  件、但位于 C2000Ware_4_XX_XX_XX\device_support\f2806x\examples\c28\flash_f28069的示例展示了如何使用 memcpy 函数将闪存上编程的内容复制到 RAM 中。

    RAM 中所需的 FPU 程序的任何函数都可以按这种方式加载(只要调用 memcpy 后它们将适合 RAM)。 如果您有任何疑问、请告诉我。

    此致、

    Omer Amir