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.

AM4376: GPIO0_3 not getting high

Part Number: AM4376

Hello,

I am trying to make GPIO0_3 high but it is not working.

static pinmuxPerCfg_t gGpio0PinCfg[] =
{
{
/* My GPIO 0 -> gpio0[7] -> G24 */
PIN_ECAP0_IN_PWM0_OUT, 7, \
( \
PIN_MODE(7) | \
((~PIN_DS_VALUE_OVERRIDE_EN & ~PIN_DS_OP_DIS & ~PIN_DS_PULL_UP_EN) & \
(~PIN_PULL_UD_DIS & ~PIN_PULL_UP_EN & ~PIN_RX_ACTIVE /*& ~PIN_DS_OP_VAL_1 & ~PIN_DS_PULL_UD_EN & ~PIN_WAKE_UP_EN*/))
) \
},
{
/* My GPIO 0 -> gpio0[3] -> L24 */
PIN_MCASP0_AHCLKX, 3, \
( \
PIN_MODE(9) | \
((PIN_PULL_UD_DIS | PIN_DS_VALUE_OVERRIDE_EN | PIN_DS_OP_DIS | PIN_DS_PULL_UP_EN | PIN_PULL_UP_EN) & \
( ~PIN_RX_ACTIVE & ~PIN_DS_OP_VAL_1 & ~PIN_DS_PULL_UD_EN & ~PIN_WAKE_UP_EN))

) \
},

{PINMUX_INVALID_PIN}
};

static pinmuxPerCfg_t gGpio5PinCfg[] =
{
{
/* My GPIO 5 -> gpio5[1] -> K24 */
PIN_UART3_RTSN, 1, \
( \
PIN_MODE(7) | \
((~PIN_DS_VALUE_OVERRIDE_EN & ~PIN_DS_OP_DIS & ~PIN_DS_PULL_UP_EN) & \
(~PIN_PULL_UD_DIS & ~PIN_PULL_UP_EN & ~PIN_RX_ACTIVE & ~PIN_DS_OP_VAL_1 & ~PIN_DS_PULL_UD_EN & ~PIN_WAKE_UP_EN))
) \
},
{PINMUX_INVALID_PIN}
};

static pinmuxPerCfg_t gGpio4PinCfg[] =
{
{PINMUX_INVALID_PIN}
};

static pinmuxPerCfg_t gGpio2PinCfg[] =
{
{PINMUX_INVALID_PIN}
};

static pinmuxPerCfg_t gGpio3PinCfg[] =
{
{PINMUX_INVALID_PIN}
};

static pinmuxModuleCfg_t gGpioPinCfg[] =
{
{0, TRUE, gGpio0PinCfg},
{5, TRUE, gGpio5PinCfg},
{4, TRUE, gGpio4PinCfg},
{2, TRUE, gGpio2PinCfg},
{3, TRUE, gGpio3PinCfg},
{CHIPDB_INVALID_INSTANCE_NUM}
};

other two gpios are working fine. means getting high and low.

Can you confirm the settings?

regards,

Vrund

  • Hi Vrund,

    What program is this? What OS do you run on AM4376?

  • I have raised the question because my other two GPIOs are working fine.

    but GPIO0_3 is not working.

    Have you faced such kind of issue in past irrespective of OS. if yes can you provide link of such issue?

    I am using TI RTOS.

    But my question is not related to TI RTOS as I know support to TI RTOS is stopped.

    I just want to make sure that my configurations are OK or NOT OK.

    Rest of clocks and register i can check.

    also provide some pointers on what other register i need to check.

    I have check data set and data out register they are behaving as per set high and low value set.

    regards,

    Vrund

  • Hi Vrund,

    No, we don't have such issue in TI SDK.

    Please read the padcfg register to ensure the pinmux has been configured correctly, and also ensure you were probing the correct pin.