The default upload address of 0x0 is wrong. You must configure it as
board_upload.offset_address = 0x80000
as discussed in
The default upload address of 0x0 is wrong. You must configure it as
board_upload.offset_address = 0x80000
as discussed in