Hello,
I am fairly new to the C2000 / CCS environment and I have a problem with enabling profiling.
I am trying to enable the -gen_profile_info for my code and I get the linker error below. It looks like the RTS library needs to be instrumented as well but I am not sure how to achieve that.
I am using TMDSDOCK28379D (F28379D Experimenter kit) with CCS v6.2.0.00048 Beta for MAC OSX.
Error:
Building target: benchF28379D_ctrlcard.out
Invoking: C2000 Linker
"/Applications/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 --cla_support=cla1 --vcu_support=vcu2 -O4 --opt_for_speed=5 --fp_mode=relaxed --advice:performance=all --symdebug:none --c99 --float_operations_allowed=32 --define=USE_C2000_VERSION --define=_FLASH --define=_INLINE --define=CPU1 --display_error_number --diag_warning=225 --diag_wrap=off --gen_func_subsections=on --sat_reassoc=on --gen_opt_info=2 --single_inline --gen_profile_info -z -m"benchF28379D_ctrlcard.map" --stack_size=0x200 --warn_sections -i"/Applications/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/lib" -i"/Applications/ti/controlSUITE/libs/math/FPUfastRTS/V100/lib/" -i"/Applications/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" -i"/Users/ben/dev/sxnths/projects/engine-c2000/projects/ccsv6/Profile" --reread_libs --display_error_number --diag_wrap=off --xml_link_info="benchF28379D_ctrlcard_linkInfo.xml" --rom_model -o "benchF28379D_ctrlcard.out" "./main_cpu01.obj" "./PDL/F2837xD_CodeStartBranch.obj" "./PDL/F2837xD_CpuTimers.obj" "./PDL/F2837xD_DefaultISR.obj" "./PDL/F2837xD_GlobalVariableDefs.obj" "./PDL/F2837xD_Gpio.obj" "./PDL/F2837xD_Ipc.obj" "./PDL/F2837xD_PieCtrl.obj" "./PDL/F2837xD_PieVect.obj" "./PDL/F2837xD_SysCtrl.obj" "./PDL/F2837xD_usDelay.obj" "../cmd/2837xD_FLASH_lnk_cpu_profile.cmd" "../cmd/F2837xD_Headers_nonBIOS_cpu1.cmd" -lrts2800_fpu32_fast_supplement.lib -llibc.a -lengine-c2000.lib
<Linking>
error: option --gen_profile_info was set in previous files, but not in "cpy_tbl.c"
error: option --gen_profile_info was set in previous files, but not in "memcpy.c"
error: option --gen_profile_info was set in previous files, but not in "memset.c"
error: option --gen_profile_info was set in previous files, but not in "pprof_cio.c"
error: option --gen_profile_info was set in previous files, but not in "pre_init.c"
error: option --gen_profile_info was set in previous files, but not in "startup.c"
... (<< MORE errors here)
fatal error #10192: Failed linktime optimization
>> Compilation failure
>> Compilation failure
>> Compilation failure