Pixhawk 2.4.8 compass calibration error

I was calibrating my drones pixhawk using mission planner. After completing the accel calibration successfully i am encountering problem with compass calibration. After rotation the drone 360 at all the positions when i try to reboot it says connect failed and automatically disconnects the mission planner.
Please help if anybody knows how to proceed with it