MATLAB: Do I get an “entry point symbol _c_int00 undefined” error when building the model with Target Support Package TC2 3.1 (R2008b)

Target Support Package TC2

I get the following error message when I compile my model with a TC2 Target Preferences block:
>> warning: entry point symbol _c_int00 undefined
undefined first referenced
symbol in file
--------- ----------------
FS$$MPY C:\data\Engineering\SW90048-NREL_System_Modeling\Support_Files\element3\Test Files\ADCsinPWM_ccslink\CustomMW\ADCsinPWM.obj
...
FS$$TOL C:\data\Engineering\SW90048-REL_System_Modeling\Support_Files\element3\Test Files\ADCsinPWM_ccslink\CustomMW\DSP280x_CpuTimers.obj
>> error: symbol referencing errors - 'ADCsinPWM.out' not built
>> Compilation failure

Best Answer

This can happen if the model's setting for Byte Order (aka Endianess) under "Simulation Configuration -> Hardware Characteristics" is incorrectly set to "Big Endian". If you change this to "Little Endian", the code should build successfully.
Note that Target Support Package TC2 3.1 (R2008b) supports the C2000 series chip in "Little Endian" mode only.