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.

F28335: Copying some functions of rts2800_fpu32.lib from Flash to RAM

Other Parts Discussed in Thread: CCSTUDIO

In order to improve execution speed I would like to copy some library functions from Flash to RAM.

I've managed to copy the whole library from Flash to internal RAM by putting the following into the linker command file:

   ramfuncs            : LOAD = FLASHD,
                         {
       C:\CCStudio_v3.3\C2000\cgtools\lib\rts2800_fpu32.lib(.text)
                         }
                         RUN = RAML0,
                         LOAD_START(_RamfuncsLoadStart),
                         LOAD_END(_RamfuncsLoadEnd),
                         RUN_START(_RamfuncsRunStart),
                         PAGE = 0

This has the following disadvantages:

  1. _c_int00 is part of the library which makes it necessary to do the copying from Flash to RAM before _c_int00 is called, i.e. in assembler.
  2. I don't need all library functions in RAM, but only some time critical ones. Currently, quite some RAM is wasted because all library functions are copied to RAM.

So my question is, whether there is a way to specify the names of library functions which are to be copied from Flash to RAM (preferably without rebuilding the library) while the other library functions are executed from Flash.

 Regards

Johannes