|
|
@@ -153,11 +153,12 @@ $_TARGETNAME configure -event reset-start { |
|
|
|
set device_class [expr (([mrw 0x400fe000] >> 16) & 0xff)] |
|
|
|
} |
|
|
|
|
|
|
|
if {$device_class == 0 || $device_class == 1 || $device_class == 3} { |
|
|
|
# Sandstorm, Fury and DustDevil are able to use NVIC SYSRESETREQ |
|
|
|
if {$device_class == 0 || $device_class == 1 || |
|
|
|
$device_class == 3 || $device_class == 5} { |
|
|
|
# Sandstorm, Fury, DustDevil and Blizzard are able to use NVIC SYSRESETREQ |
|
|
|
cortex_m3 reset_config sysresetreq |
|
|
|
} else { |
|
|
|
# Tempest and newer default to using NVIC VECTRESET |
|
|
|
# Tempest and Firestorm default to using NVIC VECTRESET |
|
|
|
# peripherals will need reseting manually, see proc reset_peripherals |
|
|
|
cortex_m3 reset_config vectreset |
|
|
|
|
|
|
|