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.

MSPM0C1104: GPIO Read Operation failing when using the driver generated by Sysconfig

Part Number: MSPM0C1104

Tool/software:

So This might sound like a silly doubt, but I have trying to debug whats the issue for not being to read a pin. I tried multiple ways. I have configured the p16A as input with pull up resistor. The GPIO_LEDS_InputPin is the pin mapped. My code goes like just to check if my pin read is 1 or 0 and then to toggle. On the launchPad I am giving approx 2.9V to the PA16 pin. I am putting the breakpoint on the line 77 and its not being and i cannot read the values . I get a uint32 bit value of 0 all the time. I have tried the example project by TI as well for gpio to read and it doesn't work.
Please Help!

  • Hi Yogesh,

    I see on line 79,80 you are using the GPIO interrupt, correct?  I also see on line #78 you selected rising edge, which based on the button connected to PA16, and you are using internal pull ups, you won't detect when the button is pressed because it is going from high->low.  But it should when you release the button low->high.

    You might also try this: 

    if (DL_GPIO_readPins(GPIO_LEDS_PORT ,LEDS_InputPin_PIN) != ~LEDS_InputPin_PIN)