How to use the JTAG Port as GPIO

3 posts / 0 new
Last post
jiangnanzhl
Offline
Last seen:4 years 3 months ago
加入:2016-05-20 10:24
How to use the JTAG Port as GPIO

As stated in data sheet,The P1_4 is the JTAG clock (SWCLK)by default,and the P1_5 is the JTAG data I/O (SWDIO) by default。
They Can also be used as GPIO pins。
How to use the JTAG Port as GPIO?

By the way,Can I use those Pins (SWCLK and SWDIO) as UART_TX and UART_Rx?

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi jiangnanzhl,

Hi jiangnanzhl,

是的,你可以使用它们GPIO的时候the SYS_CTRL_REG[DEBUGGER_ENABLE] bit is not set. Just configure them as you would do with other GPIOs in the periph_init() and you will be able to use them.

Thanks MT_dialog

jiangnanzhl
Offline
Last seen:4 years 3 months ago
加入:2016-05-20 10:24
OK, thanks

OK, thanks