Convert a Processor Expert project from linked mode to standalone mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Convert a Processor Expert project from linked mode to standalone mode

Convert a Processor Expert project from linked mode to standalone 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.

14392_14392.jpgimage001.jpg

2. Close the project in CW10.6.

14396_14396.jpgimage002.jpg

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

14397_14397.jpgimage003.jpg


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

14398_14398.gifimage004.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.

14399_14399.jpgimage005.jpg

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

14400_14400.jpgimage006.jpg

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

14401_14401.jpgimage007.jpg

 

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

14402_14402.gifimage008.gif

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

14403_14403.jpgimage009.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.

14404_14404.jpgimage010.jpg

 

 

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

14405_14405.gifimage011.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.

14406_14406.jpgimage012.jpg

 

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

Labels (1)
Tags (1)
No ratings
Version history
Last update:
‎08-26-2014 06:56 PM
Updated by: