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.

omapl138 lcdk button press - led

Other Parts Discussed in Thread: OMAPL138, OMAP-L138, STARTERWARE-DSPARM

Hello, 

I have just recently started using the omapl138 lcdk boards. I am having trouble getting the board to respond to the user buttons provided on the board. Basically, I just want to do simple test where I turn one of the leds on or off, depending on whether the button is pressed. Can anyone guide me in this, or provide some example code for similar simple tasks?

There are plenty of great examples of available, but most of them are more complex due to the relatively more advanced nature of the board. I have already configured the pins corresponding to the buttons GPIO2[4-5] as inputs, and configured the leds as outputs. But despite this, the leds will still no turn on. Any tips?

Much thanks,

Jeremy 

  • Jeremy Warner,

    Welcome to the TI E2E forum. I hope you will find many good answers here
    In addition you can find some details through the TI.com documents and the TI Wiki Pages.
    Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    Push Buttons:
    This board have  3 push buttons as per the following,
    Button    Pin 
    S1        Reset 
    S2        GPIO2[4] 
    S3        GPIO2[5]  

    When a button is pressed, the attached signal is pulled low; otherwise it is pulled high.

    The below wiki page gives more details of OMAP-L138 LCDK
    http://processors.wiki.ti.com/index.php/L138/C6748_Development_Kit_(LCDK)
    http://processors.wiki.ti.com/index.php/OMAP-L138_LCDK_Linux_SDK_Getting_Started_Guide
    http://processors.wiki.ti.com/index.php/OMAP-L138_LCDK_Linux_Software_Developer%27s_Guide

    Go to LogicPD's web site. Click on the Kit Contents tab, at the bottom of the page click at:
    OMAP-L138 SOM-M1 GEL, CCS Setup, & BSL Files - you will need to create an account in their website if you do not have one already and download the files.
    The basic example will be at: You can find the reference code for push button as per below path at the OMAP-L138 BSL,
    take this as a reference and modify to OMAPL138 LCDK.
    BSL_test_code_LogicPd_OMAP-L138\DSP EVM LED and Pushbutton Test

  • Hello Pubesh,

    Thanks for your quick reply. 

    Despite making an account on logicdpd, I cannot download the 'SOM-M1 GEL, CCS Setup, & BSL Files', when I put my mouse over it, the icon changes to a red crossout and will not let me download. It says that at the top of the page some of the links are for registered users only, but I got the board from TI, so I don't think I can register with them.

    Would you be able to email the reference files, or perhaps post them somewhere for me to download so that I can modify them for the OMAP?

    Thanks,

  • Not sure about the connection between LogicPD and the LCDK. I was under impression that LogicPD built the EVM with the SOM and TI built the LCDK. As noted by Pubesh, this link is a good place to start

    http://processors.wiki.ti.com/index.php/L138/C6748_Development_Kit_(LCDK)

    Links to a GEL script is there. For bare metal example code, have you tried StarterWare?

    http://www.ti.com/tool/starterware-dsparm

    Linux and u-boot are a bit more complicated.

  • Yes, I agree with Norman Wong. Please check with OMAP-L138 StartWare package for push button with LED test code. I think so, no push button(PB) driver code available at Startware.
    For reference only, see the attached code for C6748 EVM.
    evmc6748_v1-1\tests\evm\led_pb

    8182.evmc6748_v1-1.zip

  • Jeremy Warner,

    Are you find the software solution for push button with led?
    Did you refer the attached test code, is that help you to customize for OMAP-L138 LCDK?

  • Hello Pubesh,

    Thank you for supplying the similar code. I looked through it, and saw that it did use the push buttons, but the board was not the same and  I did not successfully transfer it over to the OMAP. I have found a work around that does not require the button usage however, so I will not be using the button.

    Much thanks for you help!