Convert a Processor Expert project from linked mode to standalone mode

Document created by jack Employee on Aug 26, 2014Last modified by Diana Torres on Feb 28, 2017
Version 2Show Document
  • View in full screen mode

Processor Expert offers static code which allows choosing standalone mode and linked mode for each project. You can select either linked mode or standalone mode for static code during project creation. But what if you want to change mode for a created project? With the below steps you can learn how to convert a project from linked mode to standalone mode in CodeWarrior v10.6.

 

1. From the original linked mode PEx project, remove the “static_code” folder.

image001.jpg

2. Close the project in CW10.6.

image002.jpg

Navigate to the top folder of the project, then open the ProcessorExpert.pe file using text editor software, for example, windows notepad.

image003.jpg


3. Seach the key world “LINKED” in the ProcessorExpert.pe file.

image004.gif

Replace the line

<ProjectStaticFilesGenerationMode>LINKED</ProjectStaticFilesGenerationMode>

with

<ProjectStaticFilesGenerationMode>STANDALONE</ProjectStaticFilesGenerationMode>

 

4. Remove the .ProcessorExpert.g_c file and .ProcessorExpert.g_x file under the top folder of the project.

image005.jpg

5. Then re-open the project in CW10.6.

image006.jpg

Click “Generate PEx Code” button from Pex components view.

image007.jpg

 

You will see a “static files track changes” dialog pop up. Click OK, PEx will create static files under the project folder.

image008.gif

6. You will see that IO_Map, PDD and System files have been generated under Static_Code folder.

image009.jpg

 

Unfortunately PEx doesn’t generate Peripherals files automatically. So you need copy the Peripherals files to the project manually. For dsc 56F82748 MCU in this case, the peripherals static files are located under the “C:\Freescale\CW MCU v10.6\MCU\ProcessorExpert\lib\56800\pdd2\MC56F82748VLH\perihperals” folder on my machine. You can simply drag and drop the folder to the project.

image010.jpg

 

 

Then select “Copy files and folders” option and click “OK”.

image011.gif

 

 

7. Now you can see that the static files are placed under the project folder now. You can verify this by checking if there is an arrow mark on the static file icons. Alternatively, you can also check by right clicking on a static file and then click “Show In Windows Explorer” item from the context menu. The stitic files should be located under the project folder.

image012.jpg

 

With above tricks, you can also convert a project from standalone mode to linked mode easily.

Attachments

    Outcomes