Part Number: TMS320F28P650DH
Other Parts Discussed in Thread: C2000WARE
Hello,
I want to move an existing code for the cla from the F28379D to the F28P65. On the F28379D the code works without any problem. After compiling the code for the F28P65 I got the following error messages.
Building file: "../cla_f28p65_code.cla"
Invoking: C2000 Compiler
"C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu1 --vcu_support=vcrc -Ooff --fp_mode=relaxed --include_path="C:/rb/Projekte/BU_E/sw/Test_LP_F28P65/cpu01" --include_path="C:/ti/c2000/C2000Ware_5_04_00_00/device_support/f28p65x/common/include" --include_path="C:/ti/c2000/C2000Ware_5_04_00_00/device_support/f28p65x/headers/include" --include_path="C:/ti/ccs1260/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ti/c2000/C2000Ware_5_04_00_00/driverlib/f28p65x/driverlib" --include_path="C:/ti/c2000/C2000Ware_5_04_00_00/libraries/math/CLAmath/c28/include" --include_path="C:/ti/c2000/C2000Ware_5_04_00_00/libraries/math/IQmath/c28/include" --advice:performance=all --define=_LAUNCHXL_F28P65X --define=DEBUG --define=CPU1 --define=_FLASH --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --cla_background_task=on --preproc_with_compile --preproc_dependency="cla_f28p65_code.d_raw" "../cla_f28p65_code.cla"
"../cla_f28p65_code.cla", line 502: advice #30012-D: (Performance) Single-precision float to double-precision float conversion operation was not eliminated during optimization. Using inefficient fallback; consider modifying code to not require this operation.
"../cla_f28p65_code.cla", line 502: advice #30012-D: (Performance) Double-precision float addition operation was not eliminated during optimization. Using inefficient fallback; consider modifying code to not require this operation.
The affected source code doesn´t use any double precision floating point variables.
EPwm1Regs.CMPA.all = ((unsigned long)((dab_debug0.de_pr*f_epwm)+0.5)+2)<<16;
The bold variables are single precision floating point variables.
float u1, u2, n_u2, n_u2_2, u1_2, tf1, tf2, tf3, tf4, t1, t2, t3, mp_2, q, tp, t_lim, t_tot, f_epwm, tp_2, i_soll, norm;
struct t_dab_debug
{
float t1;
float t2;
float t3;
float id_max; // max. Strom im Dreieck a/b Betrieb
float it_max; // max. Strom im Trapez Betrieb
float m4_max;
unsigned short mode; // 0 - aus, 1 - Dreieck a
// 2 - Trapez, 3 - Dreieck b
// 4 - m4-Betrieb
float pw_pr; // Pulsweite primär
float de_pr; // Delay primär
float pw_se; // Pulsweite sekundär
float de_se; // Delay sekundär
float pw_se_b; // Pulsweite sekundär (b)
float de_se_b; // Delay sekundär (b)
float pw_fw_pr; // Pulsweite Freilauf primär
float de_fw_pr; // Delay Freilauf primär
float pw_fw_se; // Pulsweite Freilauf sekundär
float de_fw_se; // Delay Freilauf sekundär
};
What is the reason for this error?
Thank you very much
Ralf