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.

CCS/TMS320F28335: CCSv6.1.2 fails building projects with PWM

Part Number: TMS320F28335


Tool/software: Code Composer Studio

Hello,

I am using TI C2000 Tool for Simulink for programming, and CCS v6.1.2 for debugging.

I have been able to program and debug simple codes such as math operations or ADC reading. 

The problem is when I add a ePWM block (from c2833x library). Simulink builds the project correclty.

When I import the ccs project to CCS, and debug I get this error:

'Building target: matlab_example.out'
'Invoking: C2000 Linker'
"C:/PROGRA~3/MATLAB/SUPPOR~1/R2018a/3P778C~1.INS/TIC200~1.INS/ti-cgt-c2000_16.9.2.LTS/bin/cl2000" --define=MODEL=matlab_example --define=NUMST=1 --define=NCSTATES=0 --define=HAVESTDIO --define=MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 --define=CLASSIC_INTERFACE=0 --define=ALLOCATIONFCN=0 --define=TID01EQ=0 --define=TERMFCN=1 --define=ONESTEPFCN=1 --define=MAT_FILE=0 --define=MULTI_INSTANCE_CODE=0 --define=INTEGER_CODE=0 --define=MT=0 --define=DAEMON_MODE=1 --define=MW_PIL_SCIFIFOLEN=16 --define=STACK_SIZE=64 --define=__MW_TARGET_USE_HARDWARE_RESOURCES_H__ --define=RT -z --warn_sections -i"C:/PROGRA~3/MATLAB/SUPPOR~1/R2018a/3P778C~1.INS/TIC200~1.INS/ti-cgt-c2000_16.9.2.LTS/lib" -i"C:/PROGRA~3/MATLAB/SUPPOR~1/R2018a/3P778C~1.INS/TIC200~1.INS/ti-cgt-c2000_16.9.2.LTS/include" --reread_libs --define=PWM_DMAACCESS=0 --define=BOOT_FROM_FLASH=1 --define=BOOT_USING_BL=0 --rom_model -o "matlab_example.out" "./DSP2833x_ADC_cal.obj" "./DSP2833x_Adc.obj" "./DSP2833x_CodeStartBranch.obj" "./DSP2833x_CpuTimers.obj" "./DSP2833x_DMA.obj" "./DSP2833x_DefaultIsr.obj" "./DSP2833x_GlobalVariableDefs.obj" "./DSP2833x_MemCopy.obj" "./DSP2833x_PieCtrl.obj" "./DSP2833x_PieVect.obj" "./DSP2833x_SysCtrl.obj" "./DSP2833x_usDelay.obj" "./MW_c28xx_adc.obj" "./MW_c28xx_board.obj" "./MW_c28xx_csl.obj" "./MW_c28xx_pwm.obj" "./c2833xBoard_Realtime_Support.obj" "./c2833xSchedulerTimer0.obj" "./ert_main.obj" "./matlab_example.obj" "./matlab_example_data.obj" "./profiler_Support.obj" -lC:\ProgramData\MATLAB\SupportPackages\R2018a\toolbox\target\supportpackages\tic2000\rtlib\IQmath_fpu32.lib -lC:\ProgramData\MATLAB\SupportPackages\R2018a\toolbox\target\supportpackages\tic2000\src\c2833xPeripherals.cmd -lC:\Program Files\MATLAB\R2018a\toolbox\target\extensions\processor\tic2000\lib\SFO_TI_Build_V5_fpu.lib -lC:\ProgramData\MATLAB\SupportPackages\R2018a\toolbox\target\supportpackages\tic2000\src\c28335.cmd
<Linking>
error: cannot find file "C:\Program"
"C:\\Users\\matas\\AppData\\Local\\Temp\\140563", line 38: error: cannot find
file
"Files\MATLAB\R2018a\toolbox\target\extensions\processor\tic2000\lib\SFO_TI_
Build_V5_fpu.lib"
warning: entry-point symbol "_c_int00" undefined

undefined first referenced
symbol in file
--------- ----------------
FS$$MPY ./DSP2833x_CpuTimers.obj
FS$$TOL ./DSP2833x_CpuTimers.obj
_memcpy ./c2833xBoard_Realtime_Support.obj

error: unresolved symbols remain

>> Compilation failure
error: errors encountered during linking; "matlab_example.out" not built
gmake: *** [matlab_example.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

If someone could help me to solve it, I would be grateful.

Best regards,

Francisco

  • Hello Francisco,

    Can you build any of the shipping examples which contain a PWM block? Worth a try to see if this error is specific to your model / setup.

    This could be a bug on the MathWorks side. To properly investigate, please contact MathWorks Technical Support and open a ticket. MathWorks Tech Support will probably ask for a copy of your model and will likely escalate this issue to our Advanced Support/ Development team.

    Cheers,

    -Brian

  • Francisco Matas said:
    error: cannot find file "C:\Program"
    "C:\\Users\\matas\\AppData\\Local\\Temp\\140563", line 38: error: cannot find
    file
    "Files\MATLAB\R2018a\toolbox\target\extensions\processor\tic2000\lib\SFO_TI_
    Build_V5_fpu.lib"

    Looking at the error message, it appears that the linker is tripping up on the following path which has a space between Program and Files. 
    C:\Program Files\MATLAB\R2018a\toolbox\target\extensions\processor\tic2000\lib\SFO_TI_Build_V5_fpu.lib

    Try using a path without spaces. 

    Also please check if that is even the correct path to be given to the linker as some of the other files appear to be in C:\ProgramData\MATLAB\SupportPackages\R2018a\toolbox\target

    If that does not help resolve the error, please contact Mathworks Technical Support as suggested by Brian. 

  • I changed the path in the linker options and the problem disappeared. Thank you for your help everyone!