Tool/software: Code Composer Studio
Dear Friends,
I need support for float to _IQ conversion.
I used following codes;
// code start
_iq Speed = _IQ(0.0);
float fSpd = 0.5;
Speed = _IQ(fSpd); // to convert float into _IQ24
// code end
FYI: default IQ is 24, and all required headers are included, even I've imported source code from control suit.
My code is working since last 2 years with optimization level = 4 (whole prog optimization), but now I remove optimization with taken care of defined all the variables as volatile keywords.
As I remove optimization, My MCU restarted!
I can't understand why?
How can I solve this issue?
For further details, I can share more if needed.
-Chinmay A. Shah