If the device has security plus mass erase disabled, it means game over:
How (not) to Secure my Microcontroller | MCU on Eclipse
Unless you know the back door mechanism which has been implemented by the OpenSDA producer?
See as well the KL25Z Reference manual (KL25P80M48SF0RM.pdf), search for MEEN
page 153, chapter 9.3.1:
When mass erase is disabled (via MEEN and SEC settings), the erase
request does not occur and the Flash Mass Erase in Progress bit
continues to assert until the next system reset.
page 428, FTFA_FSEC:
Mass Erase Enable Bits
Enables and disables mass erase capability of the flash memory module. The state of the MEEN bits is
only relevant when the SEC bits are set to secure outside of NVM Normal Mode. When the SEC field is
set to unsecure, the MEEN setting does not matter.
Chapter 8:Security, page 149
In the unsecured state all flash commands are available on the programming interfaces
either from the debug port (SWD) or user code execution. When the flash is secured
(FSEC[SEC] = 00, 01, or 11), the programmer interfaces are only allowed to launch mass
erase operations. Additionally, in this mode, the debug port has no access to memory
locations.
Hope this helps,
Erich