I can't upload a new sketch to the arduino uno r3

A few months ago I powered my arduino with a 12v adapter and after 30s it started smelling so I disconnected it drom the power supply immediately. It was working properly. However now when I try to upload a sketch I get this error: "avrdude stk500_getsync(): not in sync resp=0x30". I get the error on linux and on windows as well with properly installed drivers and correct serial port. It discovers the arduino but doesn't upload to it.

I tried to erase the bootloader and install it again but it doesn't discover the arduino in dfo mode. I tried with dfu programmer under linux and with atmel flip under windows but both don't work for me. I try to put arduino dfu mode by grounding the two pins as showed in the image and the arduino disappears for a second and then is found again however nothing happens.

Am I doing something wrong? Is there any chance to fix my arduino?