I've written a little sketch for my MK1000 that does something for less than a second in "loop()" and then goes to sleep for a minute with the "LowPower.deepSleep (SLEEP_TIME)" command.
Since it sleeps most of the time, it is unattainable for uploading through Arduino IDE.
So I've written a shell script that executes the command
in a loop until it succeeds (return value = 0).
But this does not reach the MKR1000 either.
I have tried to push the reset button several times while the loop is running, but it does not work also!
Does anyone have an idea how I can still achieve it?
Your script has bossac trying to use serial port device ttyACM0, but it needs to be a COM port. The ttyACM0 is for Linux/BSD (where everything is a file and it would be -port=/dev/ttyACM0).
If you double tap the reset button the bootloader mode should start (with the SAMBA running) and a COM port will show up on Windows that bossac can use.
Note I am guessing at this, I don't have any of the MKRxxxx stuff, if its wrong, then I'm sorry.