Tool/software: TI-RTOS
Hi
Issue : Unable to use TDI and TDO as gpio pins .
Form the document I came to know that TDI and TDO can be used as GPIOs, and TCK and TMS are JTAG only.
In CC2640R2F.ccxml file configures the cjag as 2-pins, find the image below
Software Changes :
In CC2640R2_LAUNCHXL.c added the below lines
GPIO_PinConfig gpioPinConfigs[] = {
--
GPIOCC26XX_DIO_17 | GPIO_DO_NOT_CONFIG, /* TDI LED Array Index 11 */
GPIOCC26XX_DIO_16 | GPIO_DO_NOT_CONFIG, /* TDO LED Array Index 12 */
}
void *mainThread(void *arg0)
{
/* 1 second delay */
uint32_t time = 1;
/* Call driver init functions */
GPIO_init();
/* Configure the LED pin */
GPIO_setConfig(12, GPIO_CFG_OUT_STD | GPIO_CFG_OUT_LOW);
/* Turn on user LED */
GPIO_write(12, Board_GPIO_LED_ON);
while (1) {
sleep(time);
GPIO_toggle(12);
}
}
Please clarify I am missing any thing .