This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem loading flash programming library into ramfuncs section

I have been able to get the example flash_prog example to work, but cannot get the assembler to insert the F021_API_CortexM3_LE.lib into ram. My cmd file segment is:

/* Section allocation in memory */

 

SECTIONS

{

    .intvecs:   > INTVECS

    .resetisr:  > RESETISR

    .text   :   > FLASH

    .const  :   > FLASH

    .cinit  :   > FLASH

    .pinit  :   > FLASH

   

      .dload      :     > FLASH_DLOAD

 

    .vtable :   > C0_1

    .data   :   > C0_1

    .bss    :   > C2_3

    .sysmem :   > C0_1

    .stack  :   > C0_1

   

    .z1secvalues  :   >  CSM_ECSL_Z1

    .z1_csm_rsvd  :   >  CSM_RSVD_Z1

    .z2secvalues  :   >  CSM_ECSL_Z2

    .z2_csm_rsvd  :   >  CSM_RSVD_Z2

   

    GROUP

    {

            ramfuncs

            {

                  -l F021_API_CortexM3_LE.lib

            }            

     }                        LOAD = FLASHLOAD,

                        RUN = C0_1,

                        LOAD_START(RamfuncsLoadStart),

                        LOAD_SIZE(RamfuncsLoadSize),

                        LOAD_END(RamfuncsLoadEnd),

                        RUN_START(RamfuncsRunStart),

                        RUN_SIZE(RamfuncsRunSize),

                        RUN_END(RamfuncsRunEnd),

                        PAGE = 0

   

    GROUP : > MTOCRAM

    {

        PUTBUFFER 

        PUTWRITEIDX

        GETREADIDX 

    }

 

    GROUP : > CTOMRAM

    {

        GETBUFFER : TYPE = DSECT

        GETWRITEIDX : TYPE = DSECT

        PUTREADIDX : TYPE = DSECT

    }   

}

The .lib file cannot be found.  Also, a warning saying no matching section. I am using compiler version 4.9.7 , running on CCS4.2.5. I tested the flash_prog example also on CCS4.2.5 but with compiler 4.6.6 and it works. But my application otherwise is working with compiler 4.9.7, and will not migrate to 4.6.6 without errors. How do I modify the example to get it to work on the newer compiler?

Any help, please.

Thanks,

Pat