Markus Wimmer

Problem with Freescale Compiler

Discussion created by Markus Wimmer on Jun 4, 2009
Latest reply on Jun 5, 2009 by CompilerGuru

Hello, i have some trouble with my programm an i hop you can help me.


Her my code 

        int result;
        float voltage;
        ACMP1SC = 0x00; //Analog Comperator ausschalten
        ADCSC1 = 0x22;  //Kanal 1 Messung jede Sekunde
        while (!(ADCSC1 & 0x80))
        result = ~ADCRL;     
        voltage = 4096/1023*result;

The Compiler error is

"Link Error   : L1822: Symbol _FSFLOAT in file C:\Users\Markus\Desktop\BAUVORHABEN\BUS_SYSTEM\SOFTWARE\EINFACHE_ROUTINEN\Analog\Analog_Data\Standard\ObjectCode\main.c.o
is undefined
Link Error   : Link failed"


What´s wrong with this code??

Thanks Markus