If you have timeout issue pls ensure the crystal used on board is 16Mhz.
change mega.menu.cpu.atmega2560.upload.protocol=wiring To: mega.menu.cpu.atmega2560.upload.protocol=stk500v2
I have this problem after change crystal value and change parameters above problem solve.