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.

Changing Memory Model breaks Linking

Guru 15580 points

OK guys.....this is getting really frustrating.....

I imported a virgin copy of AudioFilterDemo from your code.google site (http://code.google.com/p/c5505-ezdsp/downloads/list). I built it as-is and it worked fine. I then tried to change the memory model from huge (as it came in the.zip file) to large using the following (see the drop-down box middle-right "large"):

I did not modify the CCS Build page (see below)

NOW I GET A LINKER ERROR AS SHOWN BELOW! Why is CCS4 using rfs55h.lib? I have not changed anything from the default (automatic) setting (although "automatic" does not show up in the above window. In fact, CLICKING ON EITHER THE RUNTIME SUPPORT LIBRARY DROP-DOWN LIST, OR CLICKING THE ASSOCIATED "BROWSE" BUTTON DOES *NOTHTING*. THEY APPEAR TO BE DISABLED UNTIL YOU CLICK ON "DEVICE VARIANT" AT THE TOP FO THE WINDOW.

Please give me your guidance on this supposedly simple change of memory model config.........

===============================================================

'Building target: Audio_Filter_Demo.out'

'Invoking: Linker'

"C:/Program Files/TI2/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.6/bin/cl55" -@ccsLinker.opt -o "Audio_Filter_Demo.out"

<Linking>

fatal error: file "C:/Program Files/TI2/ccsv4/tools/compiler/C5500 Code

Generation Tools 4.3.6/lib/rts55h.lib<exit.obj>" has a Tag_Memory_Model

attribute value of "3" that is different than one previously seen ("2");

combining incompatible files

 

>> Compilation failure

C:\Program Files\TI2\ccsv4\utils\gmake\gmake: *** [Audio_Filter_Demo.out] Error 1

C:\Program Files\TI2\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.

Build complete for project Audio_Filter_Demo

  • After posting the above problem, I noticed that the code generator was v4.3.2. So I changed to V4.3.6, and now I am back to my previously reported error with the assembler not being able find the fir.asm file.....JUST BY CHANGING THE CODE GENERATOR VERSION!

    Am I the only person usging CCS4?

    Here is my latest error message, again, by simply changing from V4.3.2 to V4.3.6 code generator.

    =============================================

    ' '

    'Building file: ../fir.asm'

    'Invoking: Compiler'

    "C:/Program Files/TI2/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.6/bin/cl55" -vcpu:3.3 --symdebug:coff --define="_DEBUG" --define="C55X" --include_path="C:/Program Files/TI2/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.6/include" --include_path="C:/TI/C5515_eZdsp_Audio_Filter_Demo/C5515_eZdsp_Audio_Filter_Demo/project/Debug" --include_path="C:/Program Files/TI2/bios_5_41_02_14/packages/ti/rtdx/include/c5500" --include_path="C:/TI/C5515_eZdsp_Audio_Filter_Demo/C5515_eZdsp_Audio_Filter_Demo/inc" --include_path="C:/Program Files/TI2/bios_5_41_02_14/packages/ti/bios/include" --diag_warning="225" --ptrdiff_size=16 --algebraic --no_mac_expand --memory_model=large --asm_source=mnemonic "../fir.asm"

    ERROR! : Cannot open source file 15: No such file or directory

     

    >> Compilation failure

    C:\Program Files\TI2\ccsv4\utils\gmake\gmake: *** [fir.obj] Error 1