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.

Issues in Pin config

Other Parts Discussed in Thread: DM3730

Hi All,

Our platform is based on DM3730 processor. we are using Windows CE 6.0 BSP supporting  EVMDM3730.

we are not able to set GPIO126, GPIO129 and GPIO163. but the pins were tested under CCS code.

 

here is the following code used for setting the pins GPIO126 and GPIO129

----------------------


 OMAP_GPIO_REGS* pGpio;
 DWORD GpioNumber;


    OMAP_SYSC_PADCONFS_WKUP_REGS  *g_pSyscPadWkupRegs = OALPAtoUA(OMAP_SYSC_PADCONFS_WKUP_REGS_PA);
   
    OMAP_SYSC_GENERAL_REGS* pSyscGeneralRegs = OALPAtoUA(OMAP_SYSC_GENERAL_REGS_PA);


    OMAP_SYSC_GENERAL_WKUP_REGS_DM3730 *GenWkpRegs = OALPAtoUA(OMAP_SYSC_GENERAL_WKUP_REGS_DM3730_PA); 

    SETREG32(&pSyscGeneralRegs->CONTROL_PBIAS_LITE, (PBIASLITEVMODE0|PBIASLITEPWRDNZ0|PBIASLITEVMODE1|PBIASLITEPWRDNZ1)); 

    SETREG32(&GenWkpRegs->CONTROL_WKUP_CTRL, (0x40));


   
   
    OUTREG16(&g_pSyscPadWkupRegs->CONTROL_PADCONF_GPIO126, (INPUT_DISABLE | PULL_INACTIVE | MUX_MODE_4));

    OUTREG16(&g_pSyscPadWkupRegs->CONTROL_PADCONF_GPIO129, (INPUT_DISABLE | PULL_INACTIVE | MUX_MODE_4));


    GpioNumber = 126;
    pGpio = OALPAtoUA(OMAP_GPIO4_REGS_PA);
        GpioNumber -= 96;
       
    CLRREG32(&pGpio->OE, 1 << GpioNumber);   

        SETREG32(&pGpio->DATAOUT, 1 << GpioNumber);



       
    GpioNumber = 129;

    pGpio = OALPAtoUA(OMAP_GPIO5_REGS_PA);
        GpioNumber -= 128;

    CLRREG32(&pGpio->OE, 1 << GpioNumber);

       SETREG32(&pGpio->DATAOUT, 1 << GpioNumber);
-----------------------------------------------------------------------------------------

 

 

please guide us.

regards,

 

 

  • Are you using a PMIC on your custom board (similar to TI EVM)? If yes, then did you configure the PMIC to supply 3.0 V to these GPIO I/Os. See chapter 13.5.2 of DM3730 TRM (Extended-Drain I/Os and PBIAS Cells Programming Guide)

    -Madhvi