是否可以将部分存储器(引导加载程序)从编译器的优化中排除?
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.
是否可以将部分存储器(引导加载程序)从编译器的优化中排除?
Samuelr、您好!
此器件中的引导加载程序位于 ROM 中、由于已在器件上、因此未编译。 如果您要执行应用程序级引导加载程序、如 MSPFRBOOT、则该引导加载程序将被编译并受优化设置的影响。
不能排除存储器段;但是、您可以执行某些操作来排除部分代码格式优化设置。
首先、您可以使用此 E2E 帖子 中描述的 pragma 排除特定函数:https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/125869/iar-pragma-optimize-none-in-ccs
其次、还有一个选项可从 CCS 内的优化中排除整个文件。 查看以下信息: https://dev.ti.com/tirex/explore/content/simplelink_cc13x2_26x2_sdk_5_10_00_48/docs/ble5stack/ble_user_guide/html/ble-stack-5.x-guide/debugging-index.html#single-file-optimizations (本指南来自 TI 的 SimpleLink 器件、但 MSP430提供了相同的 CCS 选项。)
有关 MSP430编译器特定选项的更多信息、请查看 MSP430编译器指南 :www.ti.com/lit/slau132