infinity: Fix disabling watchdog
- watchdog is timed out before disabling it by mbed startup - old booloader disable watchdog while new(2015/01) doesn't
This commit is contained in:
		
							parent
							
								
									d23d95381a
								
							
						
					
					
						commit
						0d222db31f
					
				
					 5 changed files with 400 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -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]} {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue