AnsweredAssumed Answered

Issue with floats in VF6xx_A5

Question asked by n00b1024 on Jul 11, 2013
Latest reply on Feb 20, 2014 by n00b1024



I'm debugging code written for the Freescale VF6xx_A5, using IAR's EWARM 6.50, and am having an issue with floating point numbers. When I try to assign a non-zero value to a float, the float is automatically assigned a value of zero. For example, test and dac_vref in the code below are set to zero when the debugger steps through those lines.


  double test = 30;

  float dac_vref = 3.3; //3.3 V reference


I've tried messing around with the library configuration options both when writing the program inside and outside MQX 4.0.2, but enabling the full library (vs "normal") options hasn't helped.