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.

LAUNCHXL-CC1310: LAUNCHXL-CC1310

Part Number: LAUNCHXL-CC1310
Other Parts Discussed in Thread: CC1310

Tool/software:

I'm having problem remapping the IOs in CC1310 resource explorer examples on Launchpad. 

Example is:

i2ctmp_CC1310_LAUNCHXL_tirtos_ccs

in the CC1310_LAUNCHXL.h file, I am trying to change: 

#define CC1310_LAUNCHXL_PIN_RLED IOID_6
#define CC1310_LAUNCHXL_PIN_GLED IOID_7

to

#define CC1310_LAUNCHXL_PIN_RLED IOID_19
#define CC1310_LAUNCHXL_PIN_GLED IOID_20

making the change, recompiling and uploading, LED signals still comes out of IOID_6 and IOID_7. What else do I need to change?

Similiarly,

Trying to reconfigure I2C pins, I am changing the lines:

/* I2C */
#define CC1310_LAUNCHXL_I2C0_SCL0 IOID_4
#define CC1310_LAUNCHXL_I2C0_SDA0 IOID_5

That does not work either. Could you pls help

Thank you,

Sefa

  • If you are using the LP, you cannot use IOID_19 and 20, as these are already used by the SPI and UART.

    If you want another pin (one that is available, for example IOID_12) to toggle when you write:

    GPIO_toggle(Board_GPIO_LED0);

    You need to update the GPIO_PinConfig gpioPinConfigs[]:

    GPIO_PinConfig gpioPinConfigs[] = {
        
        /* Input pins */
        GPIOCC26XX_DIO_13 | GPIO_DO_NOT_CONFIG,  /* Button 0 */
        GPIOCC26XX_DIO_14 | GPIO_DO_NOT_CONFIG,  /* Button 1 */
    
        GPIOCC26XX_DIO_15 | GPIO_DO_NOT_CONFIG,  /* CC1310_LAUNCHXL_SPI_MASTER_READY */
        GPIOCC26XX_DIO_21 | GPIO_DO_NOT_CONFIG,  /* CC1310_LAUNCHXL_SPI_SLAVE_READY */
    
        /* Output pins */
        GPIOCC26XX_DIO_07 | GPIO_DO_NOT_CONFIG,  /* Green LED */
        //GPIOCC26XX_DIO_06 | GPIO_DO_NOT_CONFIG,  /* Red LED */
        GPIOCC26XX_DIO_12 | GPIO_DO_NOT_CONFIG,  /* DIO_12 */
        GPIOCC26XX_DIO_30 | GPIO_DO_NOT_CONFIG,  /* TMP116_EN */
    
        /* SPI Flash CSN */
        GPIOCC26XX_DIO_20 | GPIO_DO_NOT_CONFIG,
    
        /* SD CS */
        GPIOCC26XX_DIO_21 | GPIO_DO_NOT_CONFIG,
    
        /* Sharp Display - GPIO configurations will be done in the Display files */
        GPIOCC26XX_DIO_24 | GPIO_DO_NOT_CONFIG, /* SPI chip select */
        GPIOCC26XX_DIO_22 | GPIO_DO_NOT_CONFIG, /* LCD power control */
        GPIOCC26XX_DIO_23 | GPIO_DO_NOT_CONFIG, /*LCD enable */
    };
    

    Also see the following post for useful info:

    e2e.ti.com/.../launchxl-cc1310-configuration-process-for-a-gpio-pin

    Siri