56F8xx Linker Command File

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

56F8xx Linker Command File

1,527 次查看
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

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

585 次查看
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 项奖励
回复