Hi
I can understand the confusion. I started with Freescale Kinetis last April. Freescale's documentation is pretty OK, <but> it seems the documents and sample code they provide with their development board differ a lot form board to board. Some boards get all the supporting stuff as a download package, whereas other boards have (almost none).
I took a look at the TRK-EA, and from what I see it is equiped with an OpenSDA type programming interface. I provided its user guide as attachment. Now you might wonder while reading where to find the different application they mention. Well, I can advise you to go to
this link, and download the FRDM-KE04Z QSP (Quick Start Package). Although a different board and Kinetis family member, the application could (should) be the same for the OpenSDA interface. If not, I'm afraid I don't know where to find them for your board.
From my own experience with the Kinetis chips there is another thing to watch out for. I've found that for the same chip there are different register peripheral declarations with the same name, date and version. One refers to registers like SIM_SOPT, the other as SIM->SOPT. In other words, one provides a reference as a macro, while the other lets you use the register as a pointer to a struct. I haven't been able to find out a pattern, but so far CodeWarrior seems to pull in the processor specific file using the first type, while most examples use the second type. Also, CodeWarrior uses a "derivative.h" as common header which in turn pulls in the processor specific header. For my projects I deleted this, changed the includes and also changed the project settings so I don't get an error if I do so.
As for the KE04Z I've found the example projects to pull in all kinds of common headers and source files. For my taste they are a bit too overcomplete with regards to overhead. Where as the bare peripherals drivers are the opposite to my taste. Don't get me wrong, processor expert, and the Freescale low level peripheral drivers work great, but they're just not the right thing for me. So I copy what I like but usually write my own drivers to taste. Which incidentally is a great way of getting to know the processor, although time consuming.
Kinetis Design Studio looks very promissing as Kinitis specific IDE but had too much bugs for me to be usable right now. There still in beta or v1.0.0 or something. So I decided to keep CodeWarrior until KDS matures a bit. The free unlimited code size of KDS is a big plus as well as several other Kinetis specific tools.
In my case I started with the TWR-MK20D72 which lacks everything as it comes to code and drivers. As I was still getting to known CodeWarrior I avoided processor expert. So I started with getting to know the clocking system, followed by the ports and gpio, and went from there. The examples provided for other Kinetis family members were a lot of help here.
Another source I've found to be helpfull at times is
MCU on Eclipse as he works a lot with the Kinetis as well.
OK, I hope this helps. As always, YMMW
