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.

[参考译文] CCS/TMS320F28027F:代码

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/734399/ccs-tms320f28027f-code

器件型号:TMS320F28027F

工具/软件:Code Composer Studio

以下操作有什么作用?  

#ifdef _flash
memcpy (&RamfuncsRunStart、&RamfuncsLoadStart、(size_t)&RamfuncsLoadSize);
#endif

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

    这用于从闪存运行固件。 可以通过右键点击 Project -> Build Configuration -> Set Active -> Flash 来启用这部分代码

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

    memcpy 代码仅在"Flash"配置中执行(将定义"_flash"符号)
    在闪存配置中、memcpy 用于在运行时将函数从闪存复制到 RAM。

    为了实现更快的执行、需要从 RAM 中执行很少的函数。 这些函数通过使用 pragma 放置在 RAM 段中
    示例:-#pragma CODE_SECTION (function_name、"ramfuncs");

    如果您需要其他信息、请告诉我。

    谢谢、
    Katta