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
Thanks
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