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.

[参考译文] MSP430FR6989:运行用于 ST7567的 u8g2 128x64 LCD 库时、遇到致命错误 assert.h、Energia 上没有文件或目录。

Guru**** 2589245 points
Other Parts Discussed in Thread: MSP430FR5969, MSP430FR6989, ENERGIA

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/768747/msp430fr6989-getting-fatal-error-assert-h-no-file-or-directory-on-energia-when-running-u8g2-128x64-lcd-library-for-st7567

器件型号:MSP430FR6989
主题中讨论的其他器件:MSP432P401RENERGIA、MSP430FR5969

您好!

由于这篇文章很有魅力(https://e2e.ti.com/support/microcontrollers/msp430/f/166/p/764653/2830247?tisearch=e2e-sitesearch&keymatch=u8g2#2830247")、我一直在尝试使用 Energia msp432p401r 上的 u8g2库连接由 ST7567驱动的128x64 LCD。 但现在我在 MSP430FR6989上尝试了相同的代码相同的显示,但只更改了电路板。 它显示致命错误 assert.h 没有这样的文件或目录我使用了 hello world 代码完整缓冲区。 任何人能帮我解决这个问题吗?  

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

    e2e.ti.com/.../assert.hHi、

    您可以将 assert.h 文件从 driverlib 库复制到该库的 SCR 文件夹中。

    (我还附上了文件)

    注:编译时会看到另一个错误、因为 MSP430不执行任何 RTOS 或任务切换。

    这一行位于 U8x8lib.cpp 中

        //yield ();

        Task_yield ();

    应替换为

    #ifndef __MSP430__     

        //yield ();

        Task_yield ();

    #endif     

    此致、

    Stefan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    感谢您的回复 Stefan
    这就像一种魅力。
    感谢您的帮助。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    [引用用户="Stefan Schauer "]

    (请访问网站查看此文件)您好、

    您可以将 assert.h 文件从 driverlib 库复制到该库的 SCR 文件夹中。

    (我还附上了文件)

    注:编译时会看到另一个错误、因为 MSP430不执行任何 RTOS 或任务切换。

    这一行位于 U8x8lib.cpp 中

        //yield ();

        Task_yield ();

    应替换为

    #ifndef __MSP430__     

        //yield ();

        Task_yield ();

    #endif     

    此致、

    Stefan

    [/报价]

    您好 Stefan、

    感谢你的帮助。 在更改上述建议行后、出现了几个错误。 我解析了它们并在此处附加了更新的库、因此如果有人访问此线程、该文件可能对他们有用。

    我使用 MSP430FR5969和 SH1106 OLED 对此进行了测试。

    u8g2_energia_2.24.3.zip