Arduino mkr wifi 1010 making usb sound, when pressing reset button or uploading

I recently bought a Arduino mkr wifi 1010 from https://store.arduino.cc/arduino-mkr-wifi-1010

When i tried to upload the Blink example, the computer made the usb unplugging sound two times and the usb plug sound one time, and shortly after the sketch is uploaded, it writes this error message:

[error message]

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)=0
BOD : false
readWord(addr=0x40000834)=0
BOR : false
Arduino : FAST_CHIP_ERASE
Arduino : FAST_MULTI_PAGE_WRITE
Arduino : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
chipErase(addr=0x2000)
done in 0.853 seconds

Write 12284 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.108 seconds

Verify 12284 bytes of flash with checksum.
checksumBuffer(start_addr=0x2000, size=0x1000) = 9173
checksumBuffer(start_addr=0x3000, size=0x1000) = d63
checksumBuffer(start_addr=0x4000, size=0xffc) = f59c
Verify successful
done in 0.013 seconds
CPU reset.
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
writeWord(addr=0xe000ed0c,value=0x5fa0004)

[/error message]

but the sketch is still working (the board still blinks).

Also when i press the reset button on the board it also makes the usb unplugging and plugging sound.

I use a Windows 10 x86 pc
and have tried with different usb cables and ports
I have also tried to update the Mkr 1010 firmware and tried different IDE versions.

I don't know what to do, i hope you can help.

Edit: Sorry, it is Windows 10 x64.

This is the expected behavior. Some of the new Arduino boards have native USB. That means the device handles the USB communication itself. Have a look at the schematic. When you upload a new sketch, the device switches mode and uses a second USB endpoint (kind of a virtual connection) for the download. After download, the device is reset, and the USB connection is restarted.

On old Arduino boards USB is handled by a separate chip that stays connected all the time.

The Arduino IDE sometimes has issues with the USB endpoint being switched because Windows will use a different COM port number. You just need check the connection setting before you activate any COM port related stuff (download, Serial Monitor).

Another issue that can happen is that you kill the USB connection in your sketch. You then need to double click the reset button to set the board to download mode and you can reprogram the Arduino.

To better understand the behavior, have a look into the device manager. And click the reset button once and twice a few times. You should see the COM port being enabled and disabled and switching between two COM port numbers. On is the programming mode and one the normal mode.

You might ask why Arduino would do that. Simple, they can save a second chip on board and you can create native USB devices with this.

Thanks :slight_smile: