]> git.sur5r.net Git - openocd/commit
Kinetis: suppress false alarms "MCU is secured"
authorTomas Vanek <vanekt@fbl.cz>
Wed, 7 Oct 2015 14:09:21 +0000 (16:09 +0200)
committerFreddie Chopin <freddie.chopin@gmail.com>
Fri, 20 Nov 2015 22:19:03 +0000 (22:19 +0000)
commitd028d84026deed1ebf904de23749879ee41dccc9
tree17e8264d46a787b9ed81498434aaa3827b340a15
parent2594c23d780863a8ab3d213217085eae66ab2be3
Kinetis: suppress false alarms "MCU is secured"

Kinetis driver checks MDM STAT register to detect secured state of MCU.
An unsecured clean device typically triggered a huge fat alarm message.
Now when driver detects secured state it tries to halt MCU and then
re-reads status register.

Command "mdm mass_erase" used to deassert reset when finished
and MCU started looping in hard fault - WDOG reset cycle.
Now "reset halt" is issued. Clean flash is not run after mass_erase.

Change-Id: I23f393509fbd8751d44ffc744ff2d67f1074f74e
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/3010
Tested-by: jenkins
Reviewed-by: Thomas Schmid <thomas@rfranging.com>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/flash/nor/kinetis.c