Fred Frantz

56F8xx Linker Command File

Discussion created by Fred Frantz on Jul 31, 2009
Latest reply on Aug 4, 2009 by Pascal Irrle

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

Outcomes