⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
ltdev
Offline
Last seen: 1 year 2 months ago
Joined: 2018-11-12 09:19
JTAG Pin As 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
Offline
Last seen: 6 months 4 weeks ago
Staff
Joined: 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