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.

Problem in blinking LED on OMAPL137 EVM board

Other Parts Discussed in Thread: DA8XX

Hi all,

I am using the OMAPL137 EVM board  and i am trying to glow the leds DS1 to DS4, which are connected to GPIO's.

I wrote the program in which i am taking care for configuring the PINMUX to GPIO's, and i am setting the direction and then making the GPIO pin high and low.

But the LED doesn't  glow at all, i was suspecting a problem with the PINMUX...

So, when i tried the DEVMEM command to change the value of PINMUX and GPIO, i was unable to see the changes i made to PINMUX.....

I am using kernel version 2.6.32-rc6...

 

If some one can help me out, like is the problem and how to correct it......

 

Thanks,

Lokesh

 

 

  • How are you setting the PINMUX?  And are you using sysfs or a kernel module to access the GPIO interface?

  •  

    I am using the external kernel module and also i tried using the devmem command for the PINMUX enabling....

    am i doing correctly or is their any mistake......

    Please assist me....

    Thanks,

    Lokesh

     

  • I can't comment on whether /dev/mem should work for pinmuxing because I haven't tried it yet.  When I set my pinmux I just modified the kernel directly.  Just add another function call to da8xx_pinmux_setup in the function da830_env_init which is in arch/arm/mach-davinci/board-da830-evm.c.  I passed the function an array of the gpio pins that I created in da830.c.  If you go that route, you'll have to make a forward declaration of the array in da8xx.h

    After rebuilding with that method, I was able to control the LEDs using the /dev/user_gpio from the module as well as through sysfs. 

  • Hi,

    Ya... that will work and worked for me too.... but as i will be using pins for different uses i need PINMUX to be working when i insert the external module...

    The primary purpose of blinking the LED is that am i able to make changes by using the external module.....

    Please if you can tell me how that will be working for me....

     

    Thanks,

    Lokesh