Hello.
I made very big project. And recently I find wierd things with static variables and cos.
I have function "A" with some static variables:
...
static VECTOR3_I32 KF_GYRO_PREV={0,0,0};
static VECTOR3_I32 KF_GYRO_PRVE_PREV={0,0,0};
static u8 step=0;
....
Then I call other function "B" from function "A" and send some other variables. And after it, my static variables are changing!!!
It happens after call cos in the function "B"
Below I attached some images before cos and after. Optimization is none. CCS5.5. Win7
After line with cos
Regards

