Error : timed out waiting for erase

Hello, I am facing an issue while flashing code on my Pixhawk CubeOrange, i am writing a driver to interface external IMU, initially all was working good, but suddenly now am getting an “timed out error waiting for erase”. Tried changing the cable, ports, flashing new build source code(unaltered), on different machines, but still issue prevails. Guide me with this, Thanks for support