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/TMS570LS0432:我找到了全局变量程序,CPU 未找到错误

Guru**** 2540720 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/932834/ccs-tms570ls0432-i-found-the-global-variable-program-cpu-dont-found-error

器件型号:TMS570LS0432

工具/软件:Code Composer Studio

你好  

 团队

 我在我的程序中找到了新程序。

main 函数 和中断函数中的全局变量..将出现一个现象,全局变量值是 特殊值,、不在预期范围内。

CPU RAM 闪存测试 没有发现错误。

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

    黄你好、

    您能否提供更多详细信息来帮助我理解您的问题?  

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

    你好

    主程序()有  

     while (2!=CURR_STA)
     {
     sw_FeedWD ();
     }

    和中断功能

    开关(CURR_STA)

    情况0:
    if (ecmpEnableWGd()) curr_sta++;;
    ecmpLockRegisters();
    中断;
    案例1:
    if (ecmpLeaveDiagnosticState ()) CURR_Sta++;
    中断;
    默认值:
    中断;

    CURR_STA 是全局变量

    运行 几次 CURR_STA 值是大值、但不要运行 CURR_STA ++

     

     

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

    我认为 需要 在某个位置将 CURR_STA 重置为0、其中 main ()或 ISR。