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.

Memory Model What am I doing wrong

I am trying to build a workspace and project from scratch.

What am I doing wrong

Thanks

Martin

???????????????? Copy of console report ???????????????

**** Build of configuration Debug for project Led_Timer_b ****

 

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all

'Building target: Led_Timer_b.out'

'Invoking: C5500 Linker'

"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -z -m"Led_Timer_b.map" --warn_sections -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/lib" -i"c:/Program Files/Texas Instruments/ccsv4/emulation/boards/usbstk5505/lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/include" --reread_libs --rom_model -o "Led_Timer_b.out" "./Main.obj" "./Led_Temer_b.obj" -l"rts55.lib" -l"usbstk5505bsl.lib" "../lnkx.cmd"

<Linking>

fatal error: file "c:/Program Files/Texas

Instruments/ccsv4/emulation/boards/usbstk5505/lib/usbstk5505bsl.lib<usbstk55

05_led.obj>" has a Tag_Memory_Model attribute value of "2" that is different

than one previously seen ("1"); combining incompatible files

 

>> Compilation failure

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [Led_Timer_b.out] Error 1

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

Build complete for project Led_Timer_b

  • Sounds like the bsl file you've included has a different memory model.  I suggest changing the compiler to build files as "large memory model" and then change your linker to include rts55x.lib (large memory model) instead of rts55.lib (small memory model).