Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Multi tool use


Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding
Yesterday we were trying to update the firmware of our 3D-printer a Tevo Tarantula i3 The printer was running Marlin 3D Printer Firmware.
We installed a new module a TL-Touch Sensor, a chinese copy of the Bl-Touch an auto bedleveling touch sensor for a 3D printer.
After re-configurating a new version of the firmware for our setup in the Arduino IDE we went on with uploading the sketch to the Arduino Mega that was controling our 3D printer.
Before we started uploading we made sure the right COM-port was selected in the Arduino IDE and that also the right type of Arduino was selected. The Arduino Mega 2260.
Then we started with compiling the firmware and then uploading it to the Mega, Somewhere in between that moment the IDE freezed and crashed. As a response we removed the USB cable that was connected from the PC uploading the firmware onto the Arduino Mega, (This was a stupid mistake)
After we restarted the IDE and tried again we recieved the following error during the upload.
avrdude stk500_getsync() timeout communicating with programmer
After some Googling we tried the following fixes:
!!!
Sometimes the PC could also not detect that the board was connected it
would not show up in the Device Manager. But when we re-connected the
USB it would pop-up in the Windows Device Manager,
We might think we corrupted the bootloader of the Arduino Mega because we unplugged the USB cable during flashing. Prehaps someone knows somehting else that might be wrong with our setup.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.