Learn MoreFAQsTutorials

2 posts / 0 new
Last post
ltdev
Offline
Last seen:2 weeks 2 days ago
加入:2018-11-12 09:19
JTAG销的GPIO

Hi, How can i use jtag pin (P1.4) as gpio for output? Do i have to burn otp for jtag options or can i handle it over SDK?

BR

Device:
PM_Dialog
Online
Last seen:4 min 56 sec ago
Staff
加入:2018-02-08 11:03
Hi ltdev,

Hi ltdev,

Thanks for your question online. You can use the SWD pins (P1_4 ./ P1_5) as GPIO's when the debugger is disabled. To do so, the SYS_CTRL_REG[DEBUGGER_ENABLE] bit should be set to 0 in your software. According to datasheet, if this bit is not set, the SWDIO and SW_CLK can be used as gpio ports. Then you should just configure any of them as you are doing with other GPIOs in the periph_init() and you will be able to use them.

Thanks, PM_Dialog