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 / AWR1843:How do I use the GPIO Demo in the SDK?

Part Number: AWR1843


Tool/software: Code Composer Studio

Now, I want to use the GPIO in C:\ti\mmwave_sdk_03_03_00_03\packages\ti\drivers\gpio. I want to know how do I use this code in CCS. And I am a novice, I want to know what it takes to build a new project in CCS, what files to configure, and so on. Are there any valuable references?

  • Hi,

    Please refer mmwave sdk user guide which explains to use CCS to load the application image. 

    Regards,

    Jitendra

  • Hello!

    For blink onboard led I used example from Jitendra Gupta, but with one addition.

    To initialize GPIO_1 and GPIO_2 use this code:

        /* Initialize the GPIO */
        GPIO_init ();
        /**********************************************************************
         * Setup the PINMUX:
         * - GPIO Input : Configure pin J13 as GPIO_1 input
         * - GPIO Output: Configure pin K13 as GPIO_2 output
         **********************************************************************/
        Pinmux_Set_OverrideCtrl(SOC_XWR18XX_PINJ13_PADAC, PINMUX_OUTEN_RETAIN_HW_CTRL, PINMUX_INPEN_RETAIN_HW_CTRL);
        Pinmux_Set_FuncSel(SOC_XWR18XX_PINJ13_PADAC, SOC_XWR18XX_PINJ13_PADAC_GPIO_1);
    
        Pinmux_Set_OverrideCtrl(SOC_XWR18XX_PINK13_PADAZ, PINMUX_OUTEN_RETAIN_HW_CTRL, PINMUX_INPEN_RETAIN_HW_CTRL);
        Pinmux_Set_FuncSel(SOC_XWR18XX_PINK13_PADAZ, SOC_XWR18XX_PINK13_PADAZ_GPIO_2);
    
        /**********************************************************************
         * Setup the DS3 LED on the EVM connected to GPIO_2
         **********************************************************************/
        GPIO_setConfig (SOC_XWR18XX_GPIO_2, GPIO_CFG_OUTPUT); // It is addition, without it don't work.
    

    before you need add a lot of  headers in project.

    In clock task use this code:

     GPIO_toggle(SOC_XWR18XX_GPIO_2);