summaryrefslogtreecommitdiff
path: root/keyboard/infinity/tool/k20dx32_flash.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/infinity/tool/k20dx32_flash.cfg')
-rw-r--r--keyboard/infinity/tool/k20dx32_flash.cfg17
1 files changed, 16 insertions, 1 deletions
diff --git a/keyboard/infinity/tool/k20dx32_flash.cfg b/keyboard/infinity/tool/k20dx32_flash.cfg
index 714d9991f8..1e3deb0910 100644
--- a/keyboard/infinity/tool/k20dx32_flash.cfg
+++ b/keyboard/infinity/tool/k20dx32_flash.cfg
@@ -2,6 +2,22 @@
# Nemuisan's Special for MK20DN32VFT5,MK20DX32VFT5,MK10DN32VFT5,MK10DX32VFT5
+# 0.8.0 has no these procs
+proc using_jtag {} {
+ set _TRANSPORT [ transport select ]
+ expr { [ string first "jtag" $_TRANSPORT ] != -1 }
+}
+
+proc using_swd {} {
+ set _TRANSPORT [ transport select ]
+ expr { [ string first "swd" $_TRANSPORT ] != -1 }
+}
+
+proc using_hla {} {
+ set _TRANSPORT [ transport select ]
+ expr { [ string first "hla" $_TRANSPORT ] != -1 }
+}
+
source [find target/swj-dp.tcl]
if { [info exists CHIPNAME] } {
@@ -109,7 +125,6 @@ proc eraser {} {
shutdown
}
-
#debug_level 3
# HLA doesn't have cortex_m commands
if {![using_hla]} {