I get this error message while my code is totally correct
Here is my code
union long_to_float { unsigned long long_val; float float_val; };union long_to_float simar,simar_read; //unsigned long simar = 234;simar.float_val = 2.34;unsigned char return_val; unsigned long* read_data; //unsigned long p; read_data = &simar_read.long_val; return_val = IEE1_EraseEeprom(IEE1_AREA_START);
Solved! Go to Solution.
corrected
union long_to_float simar,simar_read; //unsigned long simar = 234;unsigned char return_val; unsigned long* read_data; //unsigned long p;simar.float_val = 2.34; read_data = &simar_read.long_val;
Actually all variable declarations has to be done before variable initialisation..
corrected
union long_to_float simar,simar_read; //unsigned long simar = 234;unsigned char return_val; unsigned long* read_data; //unsigned long p;simar.float_val = 2.34; read_data = &simar_read.long_val;
Actually all variable declarations has to be done before variable initialisation..