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.

TMDSLCDK138: Example for OMAP VGA and Audio development

Part Number: TMDSLCDK138
Other Parts Discussed in Thread: SYSBIOS, AM5728, OMAPL138, OMAP-L138

Dear E2E,

I have bought the OMAP-LCDK-L138 development board, installed CCS, installed C6SDK, installed MCSDK, read the Device User Guide, Read tons other documents went online everywhere.

I can't find any example to use the system other than doing a printf which does not show the capabilities of the device.

I would appreciate if you could please help me by sharing any non-Linux (i.e. need standalone / my understanding is this is referred to as "SYSBIOS" type if I'm not wrong) C code to: 

1) Switch on the VGA port, display something, anything don't mind. 

2) Switch on Audio, play something, anything don't mind if it's garbled 

3) Using the DSP to do anything as basic as possible. 

I am looking for some code that has all the #includes, the lib locations, and setting if any. 

I would appreciate if anyone could please help.


Thanks & Regards

Heider

  • Hello Heider,

    Please refer to the OMAP-L13x resource page. Please also note that TI has stopped supporting non-Linux SW development for OMAP-L13x, as announced here. So we won't be able to provide further assistance for specific questions.

    Regards,

    Jianzhong

  • Hi Jianzhong, 

    Thank you for your prompt response, I will check the links you sent, happy to agree your solution if this is what the company decided.


    Kind Regards

    Heider

  • Hi Jianzhong

    I followed all the info you sent on the link, unfortunately, the problem isn't solved. 

    The issue I am facing is that there is absolutely no standard/set way to configure the environment to produce a working example other than using the printf function to print on the console. 

    I watched all the TI training materials, downloaded tons of documents went through many TI URLs, I cannot find anything to help with setting up my environment. 

    I now have RTOS, C6SDK, MCSDK, all installed, but when trying to compile an application to do a basic UART_printf I am getting many errors as the environment does not have itself configured to use the correct libraries. 

    What I am looking for is the following 

    1) Out of the 15 compilers installed with CCS (GNU, C6000, C7000, ARM, etc), which one to use for (A) OMAP and (B) AM5728 boards?

    2) Which LIBs do I need to link to compile anything that uses the hardware? I don't mind if this answer is for RTOS, MCSDK or C6SDK as long as "something" works

    3) There must be some examples that comes pre-configured to just deploy and install to at least follow or see what's been done in the past to mimic the same. 

    Right now, I am unable to use the AM5728 nor the OMAP dev boards as it's IMPOSSIBLE to compile when there is absolutely no info about which LIBs to include in the linking process. 

    I would really appreciate some help here, not just another URL sent over that takes long time to read and does not' solve the problem.

    Really appreciate if one of the engineers could please share some info to assist. 

    Thanks

    Heider

  • Hi Heider,

    Please see if the following FAQ can help you move forward:

    Regards,

    Jianzhong

  • Thank you Jianzhong

    Looking into it now.

  • Hi Jianzhong

    Thank you sending the link, I've done this before, this works ok for the basic printing as I mentioned before, however, please consider the following:

    1) I wanted to try the UART interface, I followed the UART section on the following URL:

    https://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_device_drv.html#uart

    2) I now created the code below as a result: 

    #include <stdio.h>
    #include <ti/board/board.h>
    #include <ti/board/board_cfg.h>
    #include <ti/drv/uart/UART_stdio.h>

    int main(void)
    {
    Board_initCfg BoardConfig = BOARD_INIT_UART_STDIO;

    Board_init(BOARD_INIT_UART_STDIO);
    UART_printf("UART Output Test");
    return 0;
    }

    3) I add the H locations for the above BOARD+UART into the Compiler search paths:

    4) The project won't compile due to missing LIBs to match the H headers, so I add the following into the LINKER section:

    C:\ti\rtos\omapl138\pdk_omapl138_1_0_11\packages\ti\board\lib\lcdkOMAPL138\c674\release\ti.board.ae674

    5) Added the lib, but now greeted with more errors:

    Error: Undefined Symbol: UART_stdioInit

    Error: Undefined Symbol: UART_printf

    The million dollar question is that; where do I find the LIBs for the above missing headers? 

    Also, which ones are essential to link in either for me tot be able to produce something on the hardware side (i.e. VGA/UART/USB/Anything?!)

    Thanks

    Heider

  • Heider,

    Are you using TI-RTOS or doing bare-metal?

    Jianzhong

  • Hi Jianzhong

    Not sure what you mean, I am using CCS-Edit and the SDK I downloaded says RTOS-SDK as the directories above show. I have one for OMAP-L138 and another for the AM052x, none of them are working. 

    What's a bare-metal? 

  • When I said TI-RTOS, I meant the component libraries would be automatically linked by the RTOS tool, i.e. the XDC configuration, as mentioned in that FAQ.

    If you're not using the XDC configuration, please follow this FAQ to create bare-metal projects. Please note that this FAQ was written with AM335x as an example, but the general procedure applies for OMAP-L138 as well. It has information about where the UART lib is located and how to add it to the project.

    Regards,

    Jianzhong

  • Good morning Jianzhong

    Thank you for your message, I already had a look at this video.


    I solved the problem, for more details please see my video below: 

    https://www.youtube.com/watch?v=l6W7whWR0Zw

    Have a wonderful day. 

    Kind Regards
    Heider