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.

OMAP 3530 gpio_128,129

Other Parts Discussed in Thread: OMAP3530

We are facing an issue in configuring the gpio line 128 & 129 in OMAP3530 (Vers 3.0 & Vers 3.1) Chips. We couldn’t able to configure neither as output nor as input. We tested our code for other gpio lines present in our hardware & zoom kit, it is working fine.

 Here with I am sending the code which we used to configure the lines as gpio output & tried to toggle the lines.

 Kindly have a look & reply us as soon as possible. This is very urgent.

int main()

{

 

   int result,iCount;

   *(volatile unsigned  int *)0x48005000 = 0x0003ffff; // GPIO2 -GPIO6 f clock

   *(volatile unsigned  int *)0x48005010 = 0x0003ffff; // GPIO2 -GPIO6 I clock

   *(volatile unsigned  int *)0x48004c00 |= 0x08;      // GPIO1 f clock

   *(volatile unsigned  int *)0x48004c10 |= 0x08;      // GPIO1 I clock  

   *(volatile unsigned  int *)0x48002154 = 0x011c011c;// pad config for 128,129

    *(volatile unsigned  int *)0x49056034 &= 0xFFFFFFFC;// out put enable for 128,129

    while(1)

   {

     *(volatile unsigned  int *)0x4905603C |= 0x03;//

      for(iCount=0;iCount<10000;iCount++);

     *(volatile unsigned  int *)0x4905603C &= ~0x03;//

      for(iCount=0;iCount<10000;iCount++);     

   }

 

}