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.

CC3235MODASF: GPIO Pull-up don't seem to work

Part Number: CC3235MODASF
Other Parts Discussed in Thread: SYSCONFIG

Hi,

Trying to get to know the SDK and module I'm trying to enable a GPIO pin as an input with the internal pull up enabled.

I'm using the portable project as a start and configured the GPIO as input with Internal PullUp enabled, but it doesn't work.

If I configure it a PullDown it does work. As the led is staying off and only lights when I put 3V on the input.

But when i Enable PullUp, the led even lights when I touch the pin header with my finger, so I think the pullup isn't enabled at that moment.

I've tried different GPIO pens to rule out any peripherals or board issues.

I've also disabled all tasks except this one which only is executing the code below...

What am I doing wrong?

I'm testing on the LAUNCHCC2335MOD

This is my code:

    GPIO_setConfig(CONFIG_GPIO_IN_OPEN11, GPIO_CFG_IN_PD | GPIO_CFG_INT_DISABLE);

    while(1){

        GPIO_write(CONFIG_GPIO_LED_0, GPIO_read(CONFIG_GPIO_IN_OPEN11));

    }

Thanks,

Benno