I have the following problem:
When I run the program with debug environment the program works fine. When I run the program standalone the program doesn't behave as expected. I checked all the compiler parameters and they are the same.
I think the problem is within the Intraspin library because that is the part that doesn't works. I experienced the same problem with the intraspin library as the data order in the structs are incorrect/changed. So I think that the compiler somehow optimize that and messed up the intraspin lib. I'm working 2 weeks on it by now and it impossible to debug. so I'm a bit frustrated.
If I do a sizeof of my main data struct the size is 0.
extern SERVO_Obj servo_obj;
VT100_printf (" sizeof: %d \n\r",sizeof (servo_obj));
If I do the same sizeof in the CCS watch window the size is 1008. So what happend? SERVO_Obj is volatile. So how do I prevent the compiler to modify my datastructs even as they are volatile?
Thanks!