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.

[参考译文] MSPM0L1106:无法根据需要在 CCS Theia 中设置断点。

Guru**** 2518700 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1447320/mspm0l1106-cannot-set-break-point-in-ccs-theia-as-i-want

器件型号:MSPM0L1106

工具与软件:

尊敬的团队:

我将 CCS Theia 用作我的开发 IDE。 我有下面的困难:

1.在大多数情况下我无法按照需要设置断点。 我附上了一张有关这方面的图片。

2.我无法在所需的语句中设置断点。

3.在使用步越进行调试时,它不会按预期的顺序步进,特别是在函数调用、内联函数等之间

这些指令使我在调试软件时感到困难。 是否有任何方法可以改进上述内容?

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

    您好!

    [报价 userid="628670" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1447320/mspm0l1106-cannot-set-break-point-in-ccs-theia-as-i-want "]

    1.在大多数情况下我无法按照需要设置断点。 我附上了一张有关这方面的图片。

    2.我无法在所需的语句中设置断点。

    [报价]

    也许您的代码行已优化、以变通办法:

    1.使用_NOP();并设置断点

    2.使用__BKPT (0);软件断点

    3. 将编译器优化级别设置为0并设置断点

    [quote userid="628670" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1447320/mspm0l1106-cannot-set-break-point-in-ccs-theia-as-i-want 通过步越进行调试期间、它不会按预期顺序步进、特别是在函数调用、内联函数等之间。

    您能不能一步进入尝试一下?

    此致、

    Zoey

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

    Zoey、您好!

    感谢您提供的信息。 将优化级别设置为0后、便可以解决所有问题。

    AlanC。

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

    可以在哪里设置编译器优化级别?

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

    如果使用 CCS、请在此窗口中找到:

    此致、

    Zoey