An error occurred while uploading the sketch

It was working good, and after I came back from lunch, it crashed and told me.
Send auto-baud
Set binary mode
No device found on COM4
An error occurred while uploading the sketch

I tried to erase it but doesn't work(even not sure if it is erased).
Can anyone helps me?
many thanks

(deleted)

Thanks for your reply!
I am using a Arduino Due with IDE 1.8.3.
Well the error message is pretty long and I'll show it in attachment.
And for the light on the board, ON(green) and L (orange) light are always on.
I'm not sure if board is dead, but I can still read borad info from ide

eoor.txt (50.7 KB)

I am not going to click on attachment.
Learn how to post your error message properly.

Linking everything together...
"C:\Users\Shawn\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-

2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Os -Wl,--gc-sections "-TC:\Users\Shawn

\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\variants

\arduino_due_x/linker_scripts/gcc/flash.ld" "-Wl,-Map,C:\Users\Shawn\AppData\Local\Temp

\arduino_build_606131/sketch_jul18a.ino.map"  -o "C:\Users\Shawn\AppData\Local\Temp

\arduino_build_606131/sketch_jul18a.ino.elf" "-LC:\Users\Shawn\AppData\Local\Temp

\arduino_build_606131" -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--

entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-

align -Wl,--start-group -u _sbrk -u link -u _close -u _fstat -u _isatty -u _lseek -u _read -u 

_write -u _exit -u kill -u _getpid "C:\Users\Shawn\AppData\Local\Temp

\arduino_build_606131\sketch\sketch_jul18a.ino.cpp.o" "C:\Users\Shawn\AppData\Local\Temp

\arduino_build_606131\core\variant.cpp.o" "C:\Users\Shawn\AppData\Local\Arduino15\packages

\arduino\hardware\sam\1.6.11\variants\arduino_due_x/libsam_sam3x8e_gcc_rel.a" "C:\Users\Shawn

\AppData\Local\Temp\arduino_build_606131/core\core.a" -Wl,--end-group -lm -gcc
"C:\Users\Shawn\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-

2014q1/bin/arm-none-eabi-objcopy" -O binary  "C:\Users\Shawn\AppData\Local\Temp

\arduino_build_606131/sketch_jul18a.ino.elf" "C:\Users\Shawn\AppData\Local\Temp

\arduino_build_606131/sketch_jul18a.ino.bin"
Sketch uses 22084 bytes (4%) of program storage space. Maximum is 524288 bytes.
Forcing reset using 1200bps open/close on port COM6
C:\Users\Shawn\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino/bossac.exe 

-i -d --port=COM6 -U false -e -w -v -b C:\Users\Shawn\AppData\Local\Temp

\arduino_build_606131/sketch_jul18a.ino.bin -R 
Send auto-baud
No device found on COM6
Set binary mode
An error occurred while uploading the sketch

You mean like this ? Sorry I am new to this forum, and the error message exceeded 9000chars and I deleted repeated chars

The IDE doesn't see a device on COM6.

yes that is what confuses me.
I can see Arduino Due programming port(COM6) from device management, also from IDE-Tools it shows
port:"COM6(Arduino Due(programming port))". But once I want to upload, such error occurs.

(deleted)

:o Sorry that was because I changed a computer thus programming port also changed.
I have just done what you suggest, and got same error.

Sketch uses 22124 bytes (4%) of program storage space. Maximum is 524288 bytes.
Forcing reset using 1200bps open/close on port COM6
C:\Users\Shawn\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino/bossac.exe -i -d --port=COM6 -U false -e -w -v -b C:\Users\Shawn\AppData\Local\Temp\arduino_build_681245/sketch_jul18a.ino.bin -R 
Send auto-baud
No device found on COM6
Set binary mode
An error occurred while uploading the sketch

I have same problem.
Arduino DUE

Suddenly stop working.
...
Sketch uses 27420 bytes (5%) of program storage space. Maximum is 524288 bytes.
Forcing reset using 1200bps open/close on port COM6
C:\Users\Eduard\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino/bossac.exe -i -d --port=COM6 -U false -e -w -v -b C:\Users\Eduard\AppData\Local\Temp\arduino_build_537160/ShutterSynchro.ino.bin -R
Send auto-baud
No device found on COM6
Set binary mode
An error occurred while uploading the sketch

Computer recognizes board.

IDE get board info:

BN: Arduino Due (Programming Port)
VID: 2341
PID: 003D
SN: 55737313231351C012D0

Disconnected all devices. Did erase, did reset, reboot computer, reinstalled driver, tried different port speed.
Nothing helped.
Upload doesn't work

So instead of helping you provide no information, whatsoever.
'If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.'
After googling this problem, my first result is this link, with no one providing answers. Solid use of google yes, thank you for the help. (Obviously not). Very intelligent person, (Obviously not).