Thanks for the replies,
Yes it does compile. The switch case that in in the main loop function will move the linear actuator (I have actually built a small mock-up of the mechanical functions including limit switches, accelerometer, relays and actuators), but ignores the limit switches or any control statements put in to read the accelerometer . The accelerometer puts out a ten reading average to the lcd fine.
The problem with the external memset() funtion is it doesn't write to the eeprom like it is supposed to.
I know it will be simple when you tell me, that's why I've waited so long, trying to find my mistake myself.
Is there a way to put this code into a regular C IDE with a proper debugger? Stepping in while it executes sure would be nice.
Thanks again