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: Getting fatal error assert.h no file or directory on energia when running u8g2 128x64 lcd library for ST7567.

Part Number: MSP430FR6989
Other Parts Discussed in Thread: ENERGIA, , MSP430FR5969

hello,

Ive been trying to interface an 128x64 lcd driven by ST7567 using u8g2 library on msp432p401r on energia thanks to this post it worked like a charm ("https://e2e.ti.com/support/microcontrollers/msp430/f/166/p/764653/2830247?tisearch=e2e-sitesearch&keymatch=u8g2#2830247"). But now i tried the same code with MSP430FR6989 same code same display but only changed the board . its says fatal error assert.h no such file or directory i used the hello world code full buffer. Can any body help me out with this.  

  • assert.hHi,

    you can copy the assert.h file from the driverlib library into the scr folder of the library.

    (i have also attached the file)

    Note: you will see another error when compiling as the MSP430 does not do any RTOS or task switching.

    So this line in U8x8lib.cpp

            //yield();

            Task_yield();

    should be replaced by

    #ifndef __MSP430__        

            //yield();

            Task_yield();

    #endif        

    Regards,

    Stefan

  • Thank you for the reply Stefan
    This worked like a charm.
    Thanks for the help your the man.
  • Stefan Schauer said:

    (Please visit the site to view this file)Hi,

    you can copy the assert.h file from the driverlib library into the scr folder of the library.

    (i have also attached the file)

    Note: you will see another error when compiling as the MSP430 does not do any RTOS or task switching.

    So this line in U8x8lib.cpp

            //yield();

            Task_yield();

    should be replaced by

    #ifndef __MSP430__        

            //yield();

            Task_yield();

    #endif        

    Regards,

    Stefan

    Hi Stefan,

    Thanks for the help. There were few more errors after changing the above suggested line. I resolved them and attached the updated library here so if someone comes to this thread, maybe this file could be useful for them.

    I tested this with MSP430FR5969 and SH1106 OLed.

    u8g2_energia_2.24.3.zip

**Attention** This is a public forum