I got the device flashed as follows:
Tool bar --> Run --> left button click--> select Debug Configurations-->Edit Target Settings-->Edit Target and
checked Execute on reset, and un-checked Run out of Reset and unchecked Iniitalize target.
I think the main change that made the difference was NOT using the initialization script,
$ProjDirPath/Project_Settings/Debugger/init_kinetis.tcl. I haven't examined exactly is the problem other than certain registers that the script was trying to access were not available while the processor was running. You can see some
evidence of this in the following log message when flashing:
Starting 3rd party flash programming...
INF:
Jlink: CPU could not be haltedINF:
Jlink: CPU could not be haltedINF:
Jlink: Timeout while checking target RAM, RAMCode did not respond in time
Failed to prepare for programming.
Failed to execute RAMCode for RAM check!
Can not read register 16 (XPSR) while CPU is running
Can not read register 20 (CFBP) while CPU is runnin
Starting 3rd party flash programming...
INF:
I haven't examined the .tcl script to see which of those errors or which error in general killed the flashing.
Two more things. I did NOT halt the CPU via the Jlink commander window. I am using a Jlink Segger Plus.
Would be nice to get a deeper understanding of what elements of debugging are failing. But for now, I am
happy to move forward getting useful coding loaded onto the board