I am using arduino DUE for some projects for fun and I own 2 boards.
The fun fact is that one of them is working and programming just fine.
The other one, works fine and everything, however if i dont press the erase button, befores uploading the sketch, it doesn't receive it (and says Arduino: 1.8.5 (Windows 7), Placa:"Arduino Due (Programming Port)"
No device found on COM9
Ocorreu um erro a enviar o rascunho)
It's not a big deal to press that button, but I'd like the hear your opinions.
I have the same fault some time ago.
Sometimes it is because of the serial monitor, then I press the erase button and then uploaded the BLINK project, then the fault disappear.
I have the same problem, I can't load the program without pressing erase (for 1 sec) before.
But it is a big problem cause I'm using a shield that make it very hard to press.
There is some other way to do it?
I'm kind of newbie in this, but from the oficial description I understood it's possible to erase via USB. Can someone help me?
The Sam3x requires a full flash erase before a sketch upload. The flash erase is performed automatically (in fact this is what it is supposed to be done) whenever you upload your sketch via the arduino IDE (either with a USB cable connected to the programming port or the native USB port).
Yep, It should be done like you said, however, it only works if I press erase button before uploading the sketch (I tested a few different computers and same result).
I just figured a a wayaround this... Using the arduino online IDE, programming online, it does work without any problem.
@kikiyoto, try the Arduino online IDE, and tell us if it does work...
I found another solution, much easier: using the Native port.
At the moment I made about 5 uploads using the Native USB port and it worked.
Using the programming port still fails ("ocorreu um erro enquanto o sketch era carregado"/error ocurred while loading sketch)
I'm using the cli tool of Platformio to upload sketches to arduino. So I can use my own texteditor plus platformio auto detects the ports. It never gave me problems, while arduino ide did with port selections.