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-MSPM0L2228:当使用 Display_printf 时、该字符串有时会不连续输出

Guru**** 2463330 points
Other Parts Discussed in Thread: LP-MSPM0L2228

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1409241/lp-mspm0l2228-when-using-display_printf-the-string-sometimes-outputs-discontinuously

器件型号:LP-MSPM0L2228

工具与软件:

您好!


我目前正在 LP-MSPM0L2228上使用 i2c_target 示例、并且正在尝试应用 I2C 目标自身的地址备用功能。

发现在使用 Display_printf 时、该字符串有时会在 i2cTargetCallback 函数中不连续输出、如下面的参考图所示。

不过、mainThread 函数中的 Display_printf 不存在此问题。 有人知道原因吗? 谢谢。

静态 int_fast16_t i2cTargetCallback (
I3074 Target_Handle 手柄、I3074 Target_Event 事件uint8_t *val)
  /* 省略某些部分*/
  uint32_t test_val = 0x12
  Display_printf (display、0、0"Display printf test:%0x \n"、test_val);

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

    尊敬的 EASON:

    如何在应用程序中使用 i2c TargetCallback。

    一个可能的原因是 printf 过程被破坏了。

    我想您使用的是 FreeRTOS i2c 目标示例、但对于任务管理可能存在一些限制。

    B.R.

    SAL

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

    尊敬的 Sal:

    感谢您的答复。 我后来发现缩短字符串可以防止这一问题发生。

    但我不确定确切的原因是什么。

    此致、

    蔡奕迅

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

    尊敬的 EASON:

    所以、这看起来像是其他任务/中断破坏了操作。

    堆栈似乎 因此而损坏。

    B.R.

    SAL