Sadly, but it doesnt help. I ran script with reset pin hold active. Jlink at first trying to unlock device by itself a lot of times with no success and finally script ran with no required result too.
But - reset pin after this configuration hold in 1.6V (without forcing it low, this pin has external 4.7k pullup to 3.3V)
****** Error: Kinetis (connect): Timeout while unsecuring device. Erase never st
arts.
Kinetis (connect): Failed to unsecure Kinetis device.
Found SWD-DP with ID 0x2BA01477
Found SWD-DP with ID 0x2BA01477
****** Error: Kinetis (connect): Timeout while unsecuring device. Erase never st
arts.
Kinetis (connect): Failed to unsecure Kinetis device.
UND: R13=00000000, R14=00000000, SPSR=00000000
Sleep(1000)
Disconnecting from J-Link...O.K.
Selecting SWD as current target interface.
Sleep(10)
Select SWD by sending SWD switching sequence.
Found SWD-DP with ID 0x2BA01477
Sleep(10)
Write DP register 2 = 0x01000000
Sleep(10)
Read AP register 0 = 0x00000036
Sleep(10)
Read AP register 0 = 0x00000036
Sleep(10)
Read AP register 1 = 0x00000036
Sleep(10)
Read AP register 1 = 0x00000001
Sleep(10)
Read AP register 0 = 0x00000001
Sleep(10)
Read AP register 0 = 0x00000036
Sleep(10)
Write AP register 1 = 0x00000001
Sleep(1000)
Read AP register 0 = 0x00000036
Sleep(10)
Read AP register 0 = 0x00000036
Sleep(10)
Read AP register 1 = 0x00000036
Sleep(10)
Read AP register 1 = 0x00000001
Sleep(100)
Write DP register 2 = 0x00000000
Sleep(1000)
Selecting JTAG as current target interface.
Sleep(100)
Target connection not established yet but required for command.
Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect
JTAGConf>
Device "MKV31F512XXX12" selected.
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Can not connect to target.
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Reset delay: 0 ms
Reset type UNKNOWN: ???
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Script processing completed.