Thanks for your timely reply.
1. When you use the CW PE project download the code in the debug mode,
Whether the function works OK or not?
When in debug mode everything is working perfectly. My original project which is totally developed under PE is quite complex, but it works well in debug mode. When I was just about to flash it, I came across with this issue.
Instead of the original project, I attached a very simple project which toggle the led every 5 seconds.
The original project and this one can both work in debug mode.
2.How you flash.elf to KEA128 without the IDE?
I was using the flash programmer in CW10.5, flash file to target -> erase and flash. This is the flash log.

What the debugger you are using? JLINK or opensda?
I bought this evaluation kit from Freescale. so the TRE-KEA128 is using OpenSDA, and the IDE is cw10.5 in the CD together with the kit.
BTW, in the CD with TRE-KEA128 there are 4 examples, with can debug and flash with the IDE, so I think the IDE is okay, the other thing is they are not PE projects, So I think maybe I miss something is the PE setting, however still fail to find something related in the Help doc of CW or anywhere else.
It took me 2 days on this issue, you are my only hope. If can't fix that, I have no choice but re-write the whole complex project without the PE framework.