Tool/software:
Hello,
I am developing the CC2340R5.
I would like to use the CC2340R5's DIO16_SWDIO and DIO17_SWDCK as UART as well.
Because I want to use them as SWD as well, I have left DIO16_SWDIO and DIO17_SWDCK undefined in Sysconfig.
The UART stopped working when I updated the SHIMEI_FW_SIMPLE_LINK_SDK version from 8.20.00.119 to 8.40.00.61.
After investigating, I found that the GPIO_PinConfig setting in ti_drivers_config.c had changed after the SDK was updated.
I think this is the reason why it stopped working.
In 8.20.00.119,
GPIO_CFG_NO_DIR, /* DIO_16 */ GPIO_CFG_NO_DIR, /* DIO_17 */
GPIO_CFG_DO_NOT_CONFIG, /* DIO_16 */ GPIO_CFG_DO_NOT_CONFIG, /* DIO_17 */
So, I have a few questions.
1. Please tell me how to set GPIO_PinConfig of DIO16_SWDIO and DIO17_SWDCK to GPIO_CFG_NO_DIR on Sysconfig. (DIO16_SWDIO and DIO17_SWDCK use SWD and UART together.)
2. Or, please tell me if there is a way to change it to GPIO_CFG_NO_DIR on the source code.
Thank you.
Hello,
Thanks for reaching out. I would suggest to take a look at this section of the Users Guide: Noteworthy remarks on GPIOs usage and configuration.
BR,
David.