I have series of the factory new mke18f512 chips that i try to program.
Initially, they can be connected to and read with J-Flash:

Read blank output:

However, after erasing the first sector (or attempting to program), J-Link is unable to establish a connection to the MCU:

unlock Kinetis command in j-flash did not helped. Running it on a new, not locked device caused a lock.
What could be the source of my problem?