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.

GPIO pin functions using Zoom EVM and WinCE 6.0

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Hi,

We're using the LogicPD Zoom EVM for the OMAP-L138 and WinCE 6.0.  I have a 100-pin daughter card for access to the J connectors.

1) I'm trying to use the GPIO functions in gpio.h, gpiodefs.h to say get pin direction.  I've noticed that for most pins, there are 2 different pin locations.  For example: gpio2[1] (that's bank 2, pin 1 on the ball-grid from the datasheet) has pin designation 33 in gpiodefs.h, but 75 on the J28 100-pin connector on the baseboard schematic.  I can't find where it defines what pin locations to use, meaning from the J connector, the SOM, etc.  I don't know to what part of the hardware the pin numbers in the file refer.  There is only one gpiodefs.h file.  Does this need to be updated?  How to do if so?

2) From the schematic pins, I use a scope and notice that, if just turn the board on without even running my app, whether the pins are input or output as given by the datasheet, I get all gpio pins as Input/high just probing all the gpio slots on the daughter card.  Is that default?  Am I supposed to trigger the pins somehow?  There is a trigger function in gpio.h, but I can't find where it explains how to use.  Also, I've looked at the gpiotest project, but can't get any clues from that. Here is a line from gpiotest.c: "GpioLine   GPIO Id defined in gpiodefs.h".

Thanks for your help,

DM

 

  • Hi Don Masin,

    1A) GPIO2[1] number is 33 (starting from 0) with respect to SOC, means one of the output pins of OMAPL138 are brought out.

    Then this pin is connected to 75th pin of J28 connector. If you connect J28 to any of daughter cards then that pin can be controlled from SOC to get the desired functionality of daughter card.

    2A) Refer this page for GPIO pin controls (w.r.t Linux) http://processors.wiki.ti.com/index.php/GPIO_Driver_Guide

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!