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.

Compiler/TMS320F28075: __fmin() could not be resolved

Part Number: TMS320F28075
Other Parts Discussed in Thread: C2000WARE

Tool/software: TI C/C++ Compiler

Hi,

I am trying to use __fimin() in my code but it can not be compiled due to the error: '__fmin' could not be resolved.

Thanks.  

  • Hi,
    __fmin() is defined within this file: "${xyz_SDK_INSTALL_DIR}"/libraries/math/CLAmath/c28/include/CLAmath.h
    You need to add a path like above to your Project -> Properties -> Build -> ARM Compiler -> Include Options.
  • The problem even persists after adding CLAmath.h
  • Please, post a full console log.
  • Please submit a test case which allows me to reproduce the problem behavior.  For the source file being compiled when this diagnostic is seen ...

    Muhammad YAQOOB said:
    '__fmin' could not be resolved.

    ... please follow the directions in the article How to Submit a Compiler Test Case.

    Thanks and regards,

    -George

  • When I get the message that "Errors exist in the required project (s)" and "Proceed with launch?" and if I press 'proceed' along with error "__fmin could not be resolved", the code still works and I can see the correct value in expressions window, being assigned to the variable x=__fmin(10,9); i.e., x=9.


    The console log is given below when I only build the project:


    **** Build of configuration CPU1_RAM for project adc_soc_epwm_cpu01 ****

    "C:\\TI\\ccsv8\\utils\\bin\\gmake" -k all

    Building file: "D:/ti/c2000/C2000Ware_1_00_06_00/device_support/f2807x/examples/cpu1/adc_soc_epwm/cpu01/adc_soc_epwm_cpu01.c"
    Invoking: C2000 Compiler
    "C:/TI/ccsv8/tools/compiler/ti-cgt-c2000_18.1.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --opt_for_speed=5 --fp_mode=relaxed --include_path="C:/TI/ccsv8/tools/compiler/ti-cgt-c2000_18.1.4.LTS/include" --include_path="D:/ti/c2000/C2000Ware_1_00_06_00/libraries/math/FPUfastRTS/c28/include" --include_path="D:/ti/c2000/C2000Ware_1_00_06_00/libraries/math/CLAmath/c28/include" --include_path="D:/ti/c2000/C2000Ware_1_00_06_00/libraries/calibration/hrpwm/f2807x/include" --include_path="D:/ti/c2000/C2000Ware_1_00_06_00/device_support/f2807x/headers/include" --include_path="D:/ti/c2000/C2000Ware_1_00_06_00/device_support/f2807x/common/include" --advice:performance=all --define=CPU1 -g --diag_suppress=1311 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="adc_soc_epwm_cpu01.d_raw" "D:/ti/c2000/C2000Ware_1_00_06_00/device_support/f2807x/examples/cpu1/adc_soc_epwm/cpu01/adc_soc_epwm_cpu01.c"
    Finished building: "D:/ti/c2000/C2000Ware_1_00_06_00/device_support/f2807x/examples/cpu1/adc_soc_epwm/cpu01/adc_soc_epwm_cpu01.c"

    Building target: "adc_soc_epwm_cpu01.out"
    Invoking: C2000 Linker
    "C:/TI/ccsv8/tools/compiler/ti-cgt-c2000_18.1.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --opt_for_speed=5 --fp_mode=relaxed --advice:performance=all --define=CPU1 -g --diag_suppress=1311 --diag_warning=225 --display_error_number -z -m"adc_soc_epwm_cpu01.map" --stack_size=0x100 --warn_sections -i"C:/TI/ccsv8/tools/compiler/ti-cgt-c2000_18.1.4.LTS/lib" -i"C:/TI/ccsv8/tools/compiler/ti-cgt-c2000_18.1.4.LTS/include" -i"D:/ti/c2000/C2000Ware_1_00_06_00/device_support/f2807x/common/cmd" -i"D:/ti/c2000/C2000Ware_1_00_06_00/device_support/f2807x/headers/cmd" --reread_libs --display_error_number --xml_link_info="adc_soc_epwm_cpu01_linkInfo.xml" --rom_model -o "adc_soc_epwm_cpu01.out" "./F2807x_Adc.obj" "./F2807x_CodeStartBranch.obj" "./F2807x_DefaultISR.obj" "./F2807x_EPwm.obj" "./F2807x_GlobalVariableDefs.obj" "./F2807x_Gpio.obj" "./F2807x_PieCtrl.obj" "./F2807x_PieVect.obj" "./F2807x_SysCtrl.obj" "./F2807x_usDelay.obj" "./adc_soc_epwm_cpu01.obj" "../28075_RAM_lnk.cmd" "../SFO_v8_fpu_lib_build_c28.lib" -lrts2800_fpu32.lib -lF2807x_Headers_nonBIOS.cmd -llibc.a
    <Linking>
    Finished building target: "adc_soc_epwm_cpu01.out"


    **** Build Finished ****
  • I see no compilation errors.
    Please mark this thread as solved.

    Start a new thread and post some screen captures to show us what you get.