Very strange .bss RAM overflow
Hi,
You do not give really enough information to get sensible help; what does the HighDensSequentialRead does with the AdrGradScale value and, BTW, what is this value? What is the usefulness of the IR_Sensor_Read function (from a C point of view): it does not return anything and computes a value (gradScale) that is not used (meaning the compiler may not even compute it).
In the modified code, how did you define globally gradScale?
Bernard (Ac6)
PS: to put code in a post, just bracket it by {CODE()} and {CODE}