Tool/software: TI-RTOS
Hi, I have a simple statement in my code that is malfunctioning. The two test variables ( temperature, hi_temp_threshold ) are both declared as float.
When I am in the debugger, and stop on a breakpoint just before the if statement, I modify temperature to a value of 3000. hi_temp_threshold has a value of 2285.
Despite a large number attempts, the if statement always results in a false outcome, and does not execute my subsequent code.
if( temperature > hi_temp_threshold )
{
a0 = a0_80;
a1 = 0;
a2 = 0;
}
This looks like some sort of memory issue to me, but I am not sure how to proceed. Any help would be appreciated.
Note: While looking around I discovered that my BIOS.heapSize is set to zero in the project CFG file. Just as an experiment I boosted it to a value of 512 bytes.
This did not help, so the value was restored to zero.
My total SRAM usage is at 52%, and I have done a fresh clean / build of the project. The code in question is executed within an RTOS Task.
Thanks
Roy