Install the latest Motorola USB Drivers on your desktop.Download the Android SDK OR Download the Minimal ADB and Fastboot.Make sure to take a backup of your entire device data.
Make sure that you have installed proper device drivers on your computer. Your device must be charged up to 70% before going completely through the process mentioned below.