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.
大家好、我使用的是 Lab3中代码的修改版本、可以在此处下载:
我想从闪存中运行代码、并且成功地运行了代码、但我对 Flash_linker 命令文件中的以下部分感到有点困惑:
#ifdef __TI_Compiler_version__
#if __TI_Compiler_version__>=15009000
.TI.ramfunc:{}负载= FLASHD,
RUN = RAMLS0 | RAMLS1 | RAMLS2 | RAMLS3、
load_start (_RamfuncsLoadStart)、
load_size (_RamfuncsLoadSize)、
load_end (_RamfuncsLoadEnd)、
run_start (_RamfuncsRunStart)、
run_size (_RamfuncsRunSize)、
run_end (_RamfuncsRunEnd)、
PAGE = 0、ALIGN (4)
#endif
#endif
基本而言、如果我按原样运行代码、它不起作用、我需要绕过 #if __TI_Compiler_version__>=15009000 、以便我的代码改用'ramfuncs'作为段。
我还在.c 文件中使用了类似的旁路:
#ifdef __TI_Compiler_version__
#if __TI_Compiler_version__>=15009000
#define ramFunc 段"ramfuncs "
//#define ramFuncSection ".TI.ramfunc" -未使用
其他
#define ramFunc 段"ramfuncs "
#endif
#endif
基本上、默认代码会让我相信我需要使用 .TI.ramfunc 、而不是基于编译器版本的 ramfuncs、但是我只能通过使用 ramfuncs 使其正常工作。 如果有人能帮助我们了解这一点、我们将不胜感激。