Yes, I’m using Processor Expert *a lot*. But there might be reasons to go without it. Because then I really want to do it the hard-hard-hard core way. Or maybe because I have configured my system, and want to freeze my code. And nothing prevents me to do it ‘my way’.
In any case, it is easy to transform a CodeWarrior Processor Expert project, and then decide to remove that technology from it, and go further with the ‘traditional’ technology.
I have several choices:
- If I’m only interested in a driver, I can easily take that code and integrate it into my normal project. See this post how to do this.
- I can freeze Processor Expert: that way I still have Processor Expert in the background, but it is frozen and does not change my code anymore. How to do this is described in this post.
- The second approach is described here: I have my drivers generated, and then I want to get Processor Expert removed from my project. This transforms the project into a normal C/C++ project. This is the topic of this post.
I’m using here one of the FRDM-KL25Z projects I have created in this tutorial.
Opening that project in Eclipse shows me this:
Everything shown in the Components view is in the ProcessorExpert.pe XML file (see this post about Processor Expert files and structure). To remove Processor Expert from a project, it means removing this file.
For this I close my project so all changes are saved:
Next I use the context menu on the project and use the Windows Explorer to show me the files on the disk:
Here I select the Processor Expert files and delete them:
❗ You might make a backup if you want to re-enable Processor Expert, just in case. The ProcessorExpert.pe is the important file. The .ProcessorExpert.g_c and .ProcessorExpert.g_x are temporary files and can be removed without a problem.
Now I open the project again in Eclipse:
Now it is only an ordinary C/C++ project:
💡 If I have created a backup of the ProcessorExpert.pe file, I can place it again into the project and I have Processor Expert back.
Summary
Removing Processor Expert (and adding it again) for a project is easy: this is controlled by the presence of the ProcessorExpert.pe XML file.
Happy De-PExing 🙂
Pingback: Tutorial: printf() and “Hello World!” with the Freedom KL25Z Board | MCU on Eclipse