I have another question related to the use of the fastRTS library for the TMS320F28335 DSP:
I am trying to use the fastRTS library for one of my projects, and I'm having a hard time getting it to link correctly in my project. I have been referencing the "C28x Floating Point Unit fastRTS Library - Module User's Guide V1.00 (August 6, 2008)" for my project. The guide seems to have been written for CCSV4, while I am using CCSV5, but it looks pretty similar. I found the library itself under the directory \ti\controlSUITE\libs\math\FPUfastRTS\V100\lib\ on my computer.
My project is a DSP/BIOS project, so in my .tcf file I have added a page 0 memory section named FPUTABLES, with a base address of 0x3febdc and length of 0x6a0. In my short user defined linker cmd file, I defined a section named FPUmathTables using the following code:
FPUmathTables : LOAD = FPUTABLES, PAGE = 0
RUN = L03SARAM, PAGE = 0
LOAD_START(_fputables_loadstart),
LOAD_END(_fputables_loadend),
RUN_START(_fputables_runstart)
My initialization code contains the following:
memcpy( &fputables_runstart,
&fputables_loadstart,
&fputables_loadend - &fputables_loadstart);
The project itself contains both the rts2800_fpu32_fast_supplement.lib and rts2800_fpu32.lib files. I have tried to set the link order by going to the "link order" tab of the CCS Build options page, and putting the rts2800_fpu32_fast_supplement.lib file before the rts2800_fpu32.lib file. I also have my user defined .cmd file (which contains the definition of the FPUmathTables section) set above both library files in the link order. Under the C2000 Linker section, under "file search path," I have ensured that both .lib files are listed with rts2800_fpu32_fast_supplement.lib listed first, and the "search libraries in priority order" box is checked. When building, no errors show up so it looks like everything worked correctly.
Unfortunately, if I check the .map file for my project, the FPUTABLES memory section is empty. It shows 0 used space, so it looks like nothing was actually linked to reside in that location. In the SECTION ALLOCATION MAP section, it shows the FPUmathTables section having origin 8000, length 0, and UNINITIALIZED attributes. I have also additionally searched through the file for the location of the _isqrt function, and it is sitting at 0x301cc5, which is in FLASH. So, what have I done wrong? Why does it not seem like the fastRTS library is linked correctly? Do I need to do something different to install it? Please let me know if you need more information than what I have given.
Thank you,
Paul