Hi Jiri,
Sorry for the confusion.
Actually I was wrong in my assertion that It works when running off the debugger . It does not, The reason that I thought it did, is the fact that it failed to download without the write to EEPROM, and it was still running the old code with the EEPROM write in. I tried a different range since my partition is 32k_32k(1000_8000 to1000_ffff) and it still fails to flash . below is from debugger flash council:
Connection from "127.0.0.1" via 127.0.0.1
Connection from "127.0.0.1" via 127.0.0.1
Telnet server running on 127.0.0.1:51794
Copyright 2012 P&E Microcomputer Systems,Inc.
Command Line :C:\NXP\S32DS_ARM_v2.0\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_3.1.1.201708081924\win32\pegdbserver_console -device=NXP_S32K1xx_S32K144F512M15 -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=OPENSDA -speed=5000
CMD>RE
Initializing.
Target has been RESET and is active.
CMD>CM C:\NXP\S32DS_ARM_v2.0\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_3.1.1.201708081924\win32\gdi\P&E\supportFiles_ARM\NXP\S32K1xx\freescale_s32k144f512m15_pflash_dflash_eeprom.arp
Initializing.
Initialized.
;version 1.02, 01/20/2017, Copyright 2017 P&E Microcomputer Systems, Inc. All rights reserved. www.pemicro.com [s32k144f512m15_x_pflash_dflash_eeprom_rev2]
;device freescale, s32k144f512m15, pflash_dflash_eeprom
;begin_cs device=$00000000, length=$14001000, ram=$20000000
Loading programming algorithm ...
WARNING - Selected .ARP file has been modified. CRC16 = $6A9F
Done.
CMD>PA 0203
Started.
Done.
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00000000-00012E97 ...
Calculated CRC-16 does not match block. (File = $8B83, Device = $BCEB)
CMD>EM
Preserving data range $10000000-$1000FFFF before erase ...
Done.
Erasing.
Module has been erased.
Reloading programming algorithm ...
done.
Re-programming preserved data range $10000000-$1000FFFF ...
Done.
Error communicating to target processor - try a RESET.
CMD>PM
Programming.
Processing Object File Data ...
.
Programmed.
Error communicating to target processor - try a RESET.
CMD>VC
Error loading CRC-16 algorithm.
Error loading CRC-16 Algorithm.
Error verifying flash of device
Error occured during Flash programming.
Thanks,