I have already tried different cables. It works through time, success rate is like random.
avrdude: writing flash (1970 bytes):
Writing | avrdude: loadaddr(): (b) protocol error, expect=0x14, resp=0xfc
###
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0xfc
###avrdude: stk500_cmd(): protocol error
avrdude: stk500_cmd(): programmer is out of sync
It seems to me that my nano has a little bit different communication protocol than one that IDE/avrdude uses.
Maybe I should flash/burn bootloader to another one?