DDRD = B11111111;

So I understand that tx and rx installed in the recording mode, the sketch recorded last works, but now I can not flash the sketches via USB .

Can I fix this somehow?

arduino uno r3 ch340 chinese copy.

    2 answers 2

    In order to flash the microcontroller, you need a microcontroller ... Take the programmer and flash the mega directly. No other way.

      Use a different mode of uploading-Arduino ISP, for example. If the loader on the controller is where it is necessary, when a new program is loaded, it should not matter how the previous program worked with your UART port-port.