How to fix connection with Arduino Mega

Whenever i try to upload code into my Arduino Mega it cannot find the port,it does show a port called COM1 but if i try uploading with that one it doesnt work and just shows errors,the problem might be a driver issue but i tried everything and nothing works,in device manager whenever i connect my arduino mega it just shows some Unknown USB Device(Device Descriptor Request Failed) am not entirely sure what that means but its like the firmware is corrupted or something.


image
image

What is the serial-to-usb converter on the board? It's the IC closest to the USB port.

If it's a 16U2 can can try to reprogram it using Atmel flip.

If that does not solve the problem thr 16U2 is damaged beyond repair.

If that arduino mega is a clone, it might have different serial-to-usb converter than 16U2, and that might require its own drivers.

For example - CHSER341 drivers

ATmega 16U2,but this board is working i used it in school and everything worked perfectly it connected to the software and could upload its just a driver issue probably

I am not really sure if its a clone or not but i dont see any chip with a label like CH340 only ATmega16U2

Your screen shot is not readable, read the forum guidelines and post it properly. Are you trying to program with two different computers where one works and one does not? Do these happen to be Windoz machines? If Windoz you probably have a driver problem possible you have a CH340 on the board but not the driver in your non working machine. Also did you pick the correct Arduino in the tools menu?

Does it still work at school? If yes, are you using the same cable or are you using a different cable; try swapping the cable.

What was the last project that you were working on when it started failing?

I used the same cable its just not working on my computer

I do not have CH340, my board has ATmega16U2 on it, and yes both windows machines

I did pick the correct board in the tools menu

Can you answer the other questions that I asked?

Yes it still works in school and yes i tried with the same cable than i used a different one and my last project i did was 7 segment display in school

In that case I do not know; sorry.

I might try reinstalling windows if it will fix it, i did download like tons of drivers but the board is still not working, maybe the drivers are interfering with each other

There only is one driver active; so they can't interfere. But Windows might pick the wrong one.

The driver for the 16U2 is available in C:\Users\yourUsername\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\drivers; right click arduino.inf and click Install.

They will also be installed if you downgrade the AVR platform using the board manager (and (advisable) next upgrade again).