Uploading code exit status 1

When I attempt uploading any code to my MKR 1010 WIFI with an IOT carrier (from the IoT kit) using the desktop IDE, it gives me the following error:

No device found on ttyACM0
Failed uploading: uploading error: exit status 1

And when i try doing it with the web based IDE and Arduino agent it gives:

Flashing with command:/home/alt/.arduino-create/arduino/bossac/1.7.0-arduino3/bossac -i -d --port=ttyACM0 -U true -i -e -w -v /tmp/arduino-create-agent2347181422/Blink.bin -R

No device found on ttyACM0

I have, (I think) successfully installed both the Arduino Create Agent, and the Desktop IDE, I'm quite certain the USB cable is working fine, I've tried asking ChatGPT for help with no success, can anyone help me out?

PS: I am using linux ubuntu

Is your MKR on ttyACM0 ?

I am not sure, when I connect the Arduino with different USB ports, the ttyACM0 doesn't change.

Disconnect it; does it ttyACM0 disappear? Connect it, does ttyACM0 show up?

2 Likes

When you start an upload, does the LED on the board start fading in/out after the IDE reports the memory usage?

1 Like

Yes, and yes

Nope

That means that your MKR1010 does not react on the reset signal from the IDE (opening and closing serial port with a baudrate of 1200 baud).

When the IDE reports the memory usage, double tap the reset button; that should do the trick.

Note:
One possible reason why this can happen is due to bugs in the code that you wrote. You're advised to upload an innocent sketch first (e.g. blink) and try a few times if it's stable.

1 Like

Alright I can work with this, Thank You!

So it works now?

Yes, I didn't have time to try resolving the issue, but just now when I tried uploading the code it suddenly worked. So the bug fixed itself I guess. Thanks for your help anyway!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.