diff options
author | Jun Wako <wakojun@gmail.com> | 2015-03-22 10:51:30 +0900 |
---|---|---|
committer | Jun Wako <wakojun@gmail.com> | 2015-03-22 10:51:30 +0900 |
commit | 0d222db31f599e90e5e281f80d21ce3c6af0fef8 (patch) | |
tree | dfe22c0a8d5b5577d1320bca81c32d5aff7f9aa7 /keyboard/infinity/tool/k20dx32_flash.cfg | |
parent | d23d95381af8e7eec05a9d04c7d50e244a84fb95 (diff) |
infinity: Fix disabling watchdog
- watchdog is timed out before disabling it by mbed startup
- old booloader disable watchdog while new(2015/01) doesn't
Diffstat (limited to 'keyboard/infinity/tool/k20dx32_flash.cfg')
-rw-r--r-- | keyboard/infinity/tool/k20dx32_flash.cfg | 17 |
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]} { |