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.

LCD issues for: DA830 USER INTERFACE MODULE with OMAP-L137 EMV

Other Parts Discussed in Thread: CCSTUDIO

Hi All,

I'd like to ask you how to properly implement the code of project in EVMC6747 CCStudio v3.3:

  • lcd
  • characterdisplay

which are parts of DSKDA830 User Interface Board Test Code:
http://support.spectrumdigital.com/boards/dskda830/revc/files/DSKDA830_ui_tests_RevC.zip

For running lcd project:

  1. When I open project the message in Gel Output is:
    c6747 DSP Startup Sequence

    Setup PINMUX Registers... [Done]
    PLL Setup Complete
    Setup Power Modules (All on)... [Done]
    Startup Complete.

    Disable EDMA events

  2. After Rebuild All i can see the message:
    ------------------------------  lcd.pjt - Debug  ------------------------------
    [lcd_test.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -q -fr"./Debug/" -i"../../include/" -d"_DEBUG" -mv6400+ -@"Debug.lkf" "lcd_test.c"
    "lcd_test.c", line 12: fatal error: could not open source file "dskda830.h"
    1 fatal error detected in the compilation of "lcd_test.c".
    Compilation terminated.

    >> Compilation failure

    [main.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -q -fr"./Debug/" -i"../../include/" -d"_DEBUG" -mv6400+ -@"Debug.lkf" "main.c"
    "main.c", line 12: fatal error: could not open source file "dskda830.h"
    1 fatal error detected in the compilation of "main.c".
    Compilation terminated.

    >> Compilation failure

    Build Complete,
      2 Errors, 0 Warnings, 0 Remarks.
  3. After Rebug -> Run I can see the static view like balow:


    but in StOut I can see
    01  Testing LCD...
    but I can't see tme message from main.c:
    printf( "\n***ALL Tests Passed***\n" );

For running characterdisplay project:

  1. After Rebuild All i can see the message:
      ------------------------  charaterdisplay.pjt - Debug  ------------------------
    [characterdisplay_test.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -q -fr"./Debug/" -i"../../include/" -d"_DEBUG" -mv6400+ -@"Debug.lkf" "characterdisplay_test.c"
    "characterdisplay_test.c", line 12: fatal error: could not open source file "dskda830.h"
    1 fatal error detected in the compilation of "characterdisplay_test.c".
    Compilation terminated.

    >> Compilation failure

    [main.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -q -fr"./Debug/" -i"../../include/" -d"_DEBUG" -mv6400+ -@"Debug.lkf" "main.c"
    "main.c", line 12: fatal error: could not open source file "dskda830.h"
    1 fatal error detected in the compilation of "main.c".
    Compilation terminated.

    >> Compilation failure

    Build Complete,
      2 Errors, 0 Warnings, 0 Remarks.
  2. After Rebuild All i can see the message in StOut:
    01  Testing Character Display...
        PASS

    ***ALL Tests Passed***
    but i can't see anything on LCD:



    I suppose, there should be a message  like in characterdisplay_test.c file:
    "DA830 Character Display"

    Do you have any idea how to resolve both of this issues?

    Regards

    Bartlomiej

  • Hi Bartlomiej,
    Welcome to E2E forum, here you would get immediate and best support for your technical questions.

    Regarding the build error, include file needs to be added in CCS project properties.

    Please refer to the below TI wiki page.
    processors.wiki.ti.com/.../Include_paths_and_options
  • Hi,

    Thanks for previous reply.

    Now, there is no issue with dskda830.h, current the message after Rebuild all is:

    ------------------------  charaterdisplay.pjt - Debug  ------------------------

    [characterdisplay_test.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -q -fr"./Debug/" -i"../../../include/" -d"_DEBUG" -mv6400+ -@"Debug.lkf" "characterdisplay_test.c"

    [main.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -q -fr"./Debug/" -i"../../../include/" -d"_DEBUG" -mv6400+ -@"Debug.lkf" "main.c"

    [Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"

    <Linking>

    Build Complete,

     0 Errors, 0 Warnings, 0 Remarks.

     

    But I still see the white screen without any characters  on LCD.

     

    Regards,

     

    Bartlomiej

  • Hi Bartiomiej,
    Please make sure that you have kept boot mode to emulation mode in EVM.
    Try to set BP in the following code and debug.

    lidd_cmd(0x06); // Enable display, address increment
    lidd_cmd(0x0f); // Display on, blinking cursor
    lidd_cmd(0x01); // Clear display
    DSKDA830_waitusec(2000);
    lidd_cmd(0x02); // Return home
    DSKDA830_waitusec(2000);
  • Hi Shankari,

    Thank you for your replay.

    Unfortunately this code is already in project.

    I also checked the EVM mode by according to page 14 of:
    support.spectrumdigital.com/.../EVMOMAPL137_TechRef_revg.pdf

    So I changed the position of SW2 1-4 to top (ON).
    Is it the change, that you've mentioned?

    What do you mean by:
    Try to set BP (what is BP ?)

    Best regards,

    Bartlomiej