upload sketch to arduino over RS-485

Never tried, in theory it should be possible, might need a dedicated bootloader.

What is the problem you try to solve?