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.

[参考译文] TMS320F28027:TMS320F28027:解释代码

Guru**** 2525480 points
Other Parts Discussed in Thread: TMS320F28027

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1062453/tms320f28027-tms320f28027-explain-the-code

器件型号:TMS320F28027

PL 解释 TMS320f28027中作为 main()的一部分的以下代码及其功能:

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Memcopy (&RamfuncsLoadStart、&RamfuncsLoadEnd、&RamfuncsRunStart);

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

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

    您好!  

    使用 memcpy 函数将 RAM 函数段从闪存复制到 RAM。

    当整个代码被放置在闪存中时、有几个函数、诸如中断和闪存配置相关函数等需要在 RAM 中运行以实现更快的执行或者由于设计需要。

    所有这些函数都可以分配给 ramfunction 部分。 在器件启动时、memcpy 将负责将这些函数从闪存复制到 RAM。

    此致

    Siddharth

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

    编译器如何理解以下符号: RamfuncsLoadStart、RamfuncsLoadEnd、RamfuncsRunStart? 它们在哪里声明?

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

    您好!

    这些符号将由链接器初始化。 您只需调用 memcopy 函数、将这些变量用作参数。 这会将变量从闪存复制到 RAM

    如果查看链接器文件、您将在 SECTIONS 规范中看到。

    此致

    Siddharth