56F8xx Linker Command File

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

56F8xx Linker Command File

1,526 Views
FredF
Contributor III

I need to modify the .cmd file in CW 8.2 for the 56F8367 to add a custom section for storing data in the program flash.  The code is working, but the modifications are lost when the project is rebuilt and the .cmd file is regenerated.  Is there a way to have PE add the required lines so that they do not have to be entered after each build?  The .p_Version location is included in the .cmd file by PE since it is defined as a memory area in the CPU bean.  

 

         .VersionCode :                     # Fixed Location of version number
        {
              * (.version)
        } > .p_Version

 

Thanks

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

584 Views
trytohelp
NXP Employee
NXP Employee

Hi,

 

With PE you can add new memeory segment but in your case I think the better way will be to handle it manually.

In Processor Expert you can define if you want to build or not the cmd file.

We recommend you to disable this option.

By this way the cmd file will not be updated during the PE rebuild.

 

Option is in bean Inspector under Build Options.

In Generate Linker file, select no. 

 

Regards

Pascal

0 Kudos
Reply