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:跳过代码

Guru**** 2535750 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1429720/tms320f28379d-code-is-skip

器件型号:TMS320F28379D

工具与软件:

发现函数中跳过了某些代码。 在反汇编视图中查看。 代码会被跳过。  我曾尝试使用#pragma FUNCTION_OPTIONS (FUNCTION_NAME、"--opt_level=OFF")。 问题未解决。

下面是2行、可跳过

案例:

ramSec1Addressptr =(uint32_t *) RAMSEC1START_ADDRESS;
ramSec1AddressNextptr =(uint32_t *) RAMSEC1START_NEXTADDRESS;

我把这些行移出了函数。 这不是问题。

对问题有任何想法

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

    您好!

    您为整个项目配置了什么优化设置?  

    此致、

    Delaney

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

    你(们)好

    我发现了这个问题。 它是我在调试过程中的错误。 它很接近