Part Number: EVMK2H
Tool/software: TI C/C++ Compiler
Hello all,
I was having issues using these data types. I was trying to output a system timer (ctime) and get the value in miliseconds. The strange part was that after I declared a float or a double variable. the function call after the declaration was totally invalid, it went through but the parameter values were wrong as i entered the function call. I am using the DSP's not the ARM.
ex.
double value
value = clock(); // Clock is from the C library to get access to a timer
function(param); // lets say the parameter value is 10
when I step through the debugger, I arrow over to the function parameters and i see:
param = 6575453 // not this exact value but something way bigger than the small parameter I entered.
function(param)
I'm not sure if the problems are related, but I also got strange behavior as soon as I started using these values the interrupts don't trigger on the board, but when i remove double and floating point variables
it works fine. is there something I am missing in the compiler settings?