Tool/software: Code Composer Studio
Hi team
I read the following thread:
I know that i could use __asm(“ MSETFLG RNDF32 = 1”); to turn on RNDF32 on the CLA.
But where could i add this code to my project, .c or .cla file? When i added it to .cla file,i got an error:
fatal error #10295:
output section ".text" has both CLA and non-CLA sections; such mixing in the same output section is illegal;
Also,i found the following defines in DSP2803x_Cla.h
struct MSTF_BITS { // bits description
Uint16 LVF:1; // 0 Latched overflow flag
Uint16 LUF:1; // 1 Latched underflow flag
Uint16 NF:1; // 2 Negative float flag
Uint16 ZF:1; // 3 Zero float flag
Uint16 rsvd1:2; // 5,4
Uint16 TF:1; // 6 Test flag
Uint16 rsvd2:2; // 8,7
Uint16 RNDF32:1; // 9 Rounding mode
Uint16 rsvd3:1; // 10
Uint16 MEALLOW:1; // 11 MEALLOW status
Uint16 RPCL:4; // 15:12 Return PC, low portion
Uint16 RPCH:8; // 23:16 Return PC, high portion
Uint16 rsvd4:8; // 31:24
};
The RNDF32 has already be set to 1; Rounding mode
Please help.