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.

CCS/LAUNCHXL-CC1352R1: Help with GPIO

Part Number: LAUNCHXL-CC1352R1

Tool/software: Code Composer Studio

Hello,

I am working with a CC1352 Launchpad and am struggling to work with the GPIO pins on the board.  I would like to set certain pins high and toggle them at some increment.  Could anyone point me in the right direction?  The only example that I see in the SDK is using the GPIO as an interrupt which I do not wish to do.  The Blinking LED example works with the GPIO calls as I would imagine, however when I try to do the same thing with the defined board pins, I cannot seem to change their states.  Any help is appreciated, thank you!

  • Hi Colten,

    I would recommend you to have a look on the PIN driver examples (pinInterrupt) as I personally find it a bit more intuitive on how to set it up. If you want to use the GPIO dirver, I recommend having a look at the documentation (this makes sense to do for any driver) for it on what is required for you to be able to control a pin:

    dev.ti.com/.../_g_p_i_o_8h.html

    In either case, if you want to toggle pins on some increment, you can simply ignore the interrupt par of the pin examples as your trigger will be something else, possibly a timeout trigger or similar.
  • I'm still having trouble seeing how the GPIO pins are being used in the pin example. I see the LED pins being used fine and I try to follow the same syntax for the other pins but if I try to turn a pin high or low it has no effect. For example I am trying to turn pin DIO12 low but am having no luck.
  • I am also having trouble with the GPIO pins on a CC1352R1 and am interested in seeing how this problem is resolved. You would think TI would be more transparent about how to work something as simple as toggling a GPIO pin.
  • Colten, Sean: Could you post the code snippets where you are trying to change the pin, including the pin table setting up the pin.