Arduino Micro 1010 No Longer Allows Uploads

Hello,

I have recently been experiencing issues with two Arduino MKR 1010 boards.

I tried connecting them to the Arduino Cloud. The boards are recognized, I enter the name, but then I get the following error message:

vbnet

KopierenBearbeiten

Executing command: exit status 1  
Please try to:  
- Restart the Create Agent on the computer.  
- Detach the device from any shield/carrier or external circuitry.  
- Reconnect the device to the computer and make sure the power LED lights up.  
- Make sure the desktop IDE is closed.  
- Reset your device.  

I have tried everything, but nothing worked.

The RP2040 can be configured without any issues—same cable, same port.

Then, just for fun, I tried uploading the standard Blink sketch, but it didn't work either. The board is recognized but cannot be programmed.

from the IDE 2.3.4

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

This issue has been occurring since 17.2.25.

Has anyone else experienced this problem or has any ideas for a solution?

Hi @pattl.

Eliminating irrelevant factors from the system by testing with the Blink sketch is an excellent approach to troubleshooting!

I'm going to ask you to provide the full verbose output from an upload attempt.

I'll provide instructions for obtaining the output from Arduino IDE 2.3.4 below. I arbitrarily chose the IDE instructions since you mentioned you are using the IDE for your simple "Blink" test. If if will be more convenient for you to get the output from Arduino Cloud Editor that is also fine, and I'll be happy to provide instructions for doing that if you want.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Connect the MKR WiFi 1010 board to your computer with a USB cable.
  2. Select File > New Sketch from the Arduino IDE menus.
  3. Select the MKR WiFi 1010 board from the board selector on Arduino IDE's toolbar, if it isn't already selected.
  4. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  5. Uncheck the box next to Show verbose output during: compile in the "Preferences" dialog.
  6. Check the box next to Show verbose output during: ☐ upload.
  7. Click the "OK" button.
    The "Preferences" dialog will close.
  8. Attempt an upload, as you did before.
  9. Wait for the upload to fail.
  10. You will see an "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  11. Open a forum reply here by clicking the "Reply" button.
  12. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
  13. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the error output from the upload into the code block.
  14. Move the cursor outside of the code block markup before you add any additional text to your reply.
  15. Click the "Reply" button to post the output.
Sketch uses 12284 bytes (4%) of program storage space. Maximum is 262144 bytes.
Global variables use 2988 bytes (9%) of dynamic memory, leaving 29780 bytes for local variables. Maximum is 32768 bytes.
Performing 1200-bps touch reset on serial port COM4
Waiting for upload port...
No upload port found, using COM4 as fallback
No device found on COM4
"C:\Users\Patri\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3/bossac.exe" -i -d --port=COM4 -U true -i -e -w -v "C:\Users\Patri\AppData\Local\arduino\sketches\67E4B4723BC45D746B503C6B84FC295F/Blink.ino.bin" -R
Failed uploading: uploading error: exit status 1

Something very strange is happening. I just tried uploading the sketch again, and suddenly it worked on both Arduinos.

However, as soon as I modified the sketch, it stopped working again.

Sketch uses 12288 bytes (4%) of program storage space. Maximum is 262144 bytes.
Global variables use 2988 bytes (9%) of dynamic memory, leaving 29780 bytes for local variables. Maximum is 32768 bytes.
Performing 1200-bps touch reset on serial port COM5
Waiting for upload port...
No upload port found, using COM5 as fallback
"C:\Users\Patri\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3/bossac.exe" -i -d --port=COM5 -U true -i -e -w -v "C:\Users\Patri\AppData\Local\arduino\sketches\A3E563AA02EBDB87D29F6460E096BEF8/Blink.ino.bin" -R
Set binary mode
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
version()=v2.0 [Arduino:XYZ] Mar 19 2018 09:45:14
chipId=0x10010005
Connected at 921600 baud
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Atmel SMART device 0x10010005 found
write(addr=0x20004000,size=0x34)
writeWord(addr=0x20004030,value=0x10)
writeWord(addr=0x20004020,value=0x20008000)
Device       : ATSAMD21G18A
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Chip ID      : 10010005
version()=v2.0 [Arduino:XYZ] Mar 19 2018 09:45:14
Version      : v2.0 [Arduino:XYZ] Mar 19 2018 09:45:14
Address      : 8192
Pages        : 3968
Page Size    : 64 bytes
Total Size   : 248KB
Planes       : 1
Lock Regions : 16
Locked       : readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
none
readWord(addr=0x41004018)=0
Security     : false
Boot Flash   : true
readWord(addr=0x40000834)=0x7000a
BOD          : true
readWord(addr=0x40000834)=0x7000a
BOR          : true
Arduino      : FAST_CHIP_ERASE
Arduino      : FAST_MULTI_PAGE_WRITE
Arduino      : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
chipErase(addr=0x2000)
done in 0.820 seconds

Write 12288 bytes to flash (192 pages)
write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000)

[==========                    ] 33% (64/192 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x3000, size=0x1000)

[====================          ] 66% (128/192 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0x1000)

[==============================] 100% (192/192 pages)
done in 0.067 seconds

Verify 12288 bytes of flash with checksum.
checksumBuffer(start_addr=0x2000, size=0x1000) = aa7c
checksumBuffer(start_addr=0x3000, size=0x1000) = b6b6
checksumBuffer(start_addr=0x4000, size=0x1000) = a123
Verify successful
done in 0.012 seconds
CPU reset.
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
writeWord(addr=0xe000ed0c,value=0x5fa0004)

Now the Arduino accepts the sketch, but I still get an error message.

Please provide the full and exact text of the error message.

this is the Full Messega from the compiler, is there anywhere an extendet version?