Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hello,
On CCS V9.0.1, I imported "Example_2806xFPU_hardware" from C2000Ware 1.0.6.0.
Modified code:
// // Included Files // #include "DSP28x_Project.h" // Device Headerfile and Examples Include File #include "MATH.H"
.
.
.
//
// Calculate two atan2 equations.
//
y1 = 8247;
y2 = -8247;
m1 = .5;
m2 = .6;
x1 = 4847;
x2 = -4847;
b1 = atan2(y1,x1) *180.0/3.1415926536;
b2 = atan2(y2,x2) *180.0/3.1415926536;
Compiled and executed but got wrong results.
After checking many parameters, I removed "rts2800_fpu32_fast_supplement.lib" from linker library list and the issue resolved:
What is wrong with the default setting?
With regards,
MHG
