Switch between JTAG and GPIO

2 posts / 0 new
Last post
edwardwhite
Offline
Last seen:3 years 2 months ago
加入:2016-09-30 16:31
Switch between JTAG and GPIO

Hello,

How do I switch between using pins 0_6 and 2_4 as JTAG and GPIO? I can see that there is a JTAG enable/disable bit in the OTP, but I want my application to be able to switch between the two

Thanks!
Edd

Keywords:
Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2015-06-08 11:34
Hi edwardwhite,

Hi edwardwhite,

I am not sure i get the question, the enable/disable in the OTP is to enable or disable the debugger module, you dont have to program the OTP in order to disable the debugger and use that pins as normal gpios. Those pins have this default functionallity, if the DEBUGGER_ENABLE bitfield at the SYS_CTRL_REG is not set the SWDIO and SW_CLK can be used as normal GPIOs, you should be able to check that in the datasheet p.217, table 184.

Thanks MT_dialog