I assume you're getting this error when trying to move an axis before the printer has been homed? Or is this when doing the homing? Provide your config.g and homing files either way.