Upload sketch without USB

you can use avrdude on RasPI. point it to the com port with the RS485 adapter.
wdt_enable(WDTO_15MS); with #include <avr/wdt.h>
make sure you burn the 'new' bootloader. the 'old' bootloader would go into boot loop with watchdog