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.

Easy way to write to the LCD - MSP430f5438A on MSP4305438 Experimenter Board

Other Parts Discussed in Thread: MSP430F5438, MSP430F5438A

Hi,

I'm trying to find the right and easiest way to write strings to the LCD display.

I can say that although I read a lot, I'm still confused.

could someone explain this subject step by step please? 

I'm using MSP430f5438A controller, via MSP430F5438 experimenter board, and CCS 5.3.

if it easier to do that via other programs (IAR, FreeRTOS - I know it's not doing the same thing, but what it do does???) I will consider to change from the CCS.

  • Shmuel Rachimi said:
    write strings to the LCD display

    I presume you mean, specifically, the LCD on the MSP-EXP430F5438 experimenter board ?

    http://www.ti.com/tool/msp-exp430f5438

    First, of course, you will need to study the documentation for both the MSP430f5438A controller, and the MSP-EXP430F5438 experimenter board

    http://www.ti.com/tool/msp-exp430f5438 - see "Technical Documents"

    Then look at the Code Examples for the MSP-EXP430F5438 experimenter board - note that you have to click on 'Show More' to reveal the full list on the MSP-EXP430F5438 product page.

     

  • Hello Andy,

    thank you for the advice. Since there is no code examlple for using the LCD screen, I tried including the header and .c files from the "user-experience" code which works for the compilation of a small code example.

    #include <msp430.h> 
    #include <hal_MSP-EXP430F5438.h>

    int main(void) {
        WDTCTL = WDTPW | WDTHOLD;    // Stop watchdog timer
        
        //Initialize LCD and backlight
        halLcdInit();
        halLcdBackLightInit();
        halLcdSetBackLight(2);
        halLcdSetContrast(100);

    //Clear screen
        halLcdClearScreen();

        while(1){}

        return 0;
    }

    Unfortunately, somehow the code will not start running if I include the function "halLcdClearScreen();" into my code and I don't know the reason. CCS tells me "Loading complete" but the green "play" button stays gray and when I click "pause" a window opens showing one the following error message:

    Can't find a source file at "/tmp/TI_MKLIBaXqLbT/SRC/copy_decompress_rle.c"
    Locate the file or edit the source lookup path to include its location.

    Can't find a source file at "/tmp/TI_MKLIBaXqLbT/SRC/copy_zero_init.c"
    Locate the file or edit the source lookup path to include its location.

    Windows can't find those files anywhere on my computer altough the "user-experience" code works fine.

    Suggestions?

    Thank you in advance.

    Lasse

  • Lasse Jagschies said:
    Can't find a source file at "/tmp/TI_MKLIBaXqLbT/SRC/copy_decompress_rle.c"

    In a different thread, someone just had a similar problem after upgrading his compiler (with a previously working project).
    TI_MKLIB... indicates that this problem is with the building of the standard library.
    It has to do with the code model. MSPs with MSP430X core (those with >64k address range) have two possible code models: small and large. small is 100% backwards compatible with standard MSP cores, bu tlarge code model requires usage of special instrucitons for calling functions and returning. Function pointers are 20 (32) bit in large code model and the compiled code (and the libraries) are incompatible with small code model.
    Apparently the default for new projects is using the large code model and the projects have an 'mspx' option set if the CPU has such a core. But this seems to cause problems with existing projects where thsi option doesn't exist at all.

    I don't use CCS myself, so I cannot check it in detail, but this might give you a hint.

  • I am also try to do this but not work

    now you display it or not please help me to do?

**Attention** This is a public forum