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.

[参考译文] LP-MSPM0L1306:使用 GNU V9.21 -O0进行编译时、卡在 default_handler 中(CCS 20.0.1)

Guru**** 2468460 points
Other Parts Discussed in Thread: MSPM0L1306

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1465806/lp-mspm0l1306-stuck-in-default_handler-when-compiling-with-gnu-v9-21--o0-ccs-20-0-1

器件型号:LP-MSPM0L1306
主题中讨论的其他器件:MSPM0L1306

工具与软件:

我使用 CCS 20.0.1.4_6.1工程向导创建了"gpio_toggle_output_LP_MSPM0L1306_nortos_gcc"示例。

当我选择 GNU v9.2.1编译器并将优化变为 O0时、我在尝试调试代码时就会卡在 Default_Handler 上。

调试仅适用于其他优化级别。

当我使用 TI Clang 4.0编译器创建相同的示例时、所有优化级别都在调试会话中有效。

此致、

Stephan

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

     Stephan、您好!

    我们收到了您的问题、我们的团队正在 尝试重现此问题。  如果问题是由我们的一方重现的,我们将报告给软件团队,我将在这里及时更新结果。

    顺便说一下、为了节省您的时间、您是否曾尝试过 更新 IDE 或 SDK 来解决问题? 因为有时可能是由于版本未更新。

    此致、

    Peter

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

    我已经使用最新的 IDE 和 SDK 版本。

    从 GNU 变为 Clang 解决了我的问题。