How to enable DIO13,DIO14 and DIO15 for normal DIO function?
When RSL10 power on, the DIO13, DIO14 and DIO15 are configured for JTAG (SWJ-DP debug port interface to implement a 4- or 5-wire JTAG interface).
- DIO13 configured as JNTRST (5-wire JTAG interface only)
- DIO14 configured as JTDI
- DIO15 configured as JTDO
The following table shows 4- and 5-wire JTAG and SWD interfaces:
However, we normally recommend using JTAG SWD for programming and debugging, which only use RSL10 TMS and TCLK pins.
How can we enable these 3 DIO pins (DIO13, DIO14 and DIO15) for normal DIO functions like other DIOs?
Please use the following code:
// This is for DIO14/DIO15
DIO_JTAG_SW_PAD_CFG->CM3_JTAG_DATA_EN_ALIAS = CM3_JTAG_DATA_DISABLED_BITBAND;
//This is for DIO13
DIO_JTAG_SW_PAD_CFG->CM3_JTAG_TRST_EN_ALIAS = CM3_JTAG_TRST_DISABLED_BITBAND;
NOTE: If you are using CMSIS, you also have an option to configure in this way.
You could also navigate to the RTE_Device.h file within the Project Explorer (RTE ==> Device ==> RSL10 ==> RTE_Device.h) and then right click, open with the CMSIS Configuration Wizard, and change the GPIO settings as following:
Make sure you enable “JTAG SW PAD configuration enable” and disable “JTAG data enable” as well as “TRST enable”.