I'm working on a Mkr 1010 project with the ENV shield, for some reason when I plug in the Mkr my computer doesn't make a USB plugin noise so I just double-tapped the reset and it connected. After running my code it disconnects and the CPU Resets even though it always stays on COM 8. I've tried multiple Mini Type USB Cables but all have done this, I'm also running the newest version of the IDE and turned off my Firewall and unplugged it from my USB hub, and plugged it directly into my computer.
Even though the code is supposed to connect to wifi and send an API request it doesn't so I don't think it properly uploaded in the first place.
I'm not sure if I'm doing something wrong but here's the error code:
Sketch uses 42164 bytes (16%) of program storage space. Maximum is 262144 bytes.
Global variables use 3480 bytes (10%) of dynamic memory, leaving 29288 bytes for local variables. Maximum is 32768 bytes.
Atmel SMART device 0x10010005 found
Device : ATSAMD21G18A
Chip ID : 10010005
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 : none
Security : false
Boot Flash : true
BOD : false
BOR : false
Arduino : FAST_CHIP_ERASE
Arduino : FAST_MULTI_PAGE_WRITE
Arduino : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
done in 0.646 seconds
Write 42164 bytes to flash (659 pages)
[==============================] 100% (659/659 pages)
done in 0.259 seconds
Verify 42164 bytes of flash with checksum.
Verify successful
done in 0.036 seconds
CPU reset.
processing.app.SerialException: Error opening serial port 'COM8'.
at processing.app.Serial.<init>(Serial.java:152)
at processing.app.Serial.<init>(Serial.java:82)
at processing.app.SerialMonitor$2.<init>(SerialMonitor.java:132)
at processing.app.SerialMonitor.open(SerialMonitor.java:132)
at processing.app.AbstractMonitor.resume(AbstractMonitor.java:132)
at processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2120)
at processing.app.Editor.access$1300(Editor.java:117)
at processing.app.Editor$UploadHandler.run(Editor.java:2089)
at java.lang.Thread.run(Thread.java:748)
Caused by: jssc.SerialPortException: Port name - COM8; Method name - openPort(); Exception type - Port not found.
at jssc.SerialPort.openPort(SerialPort.java:167)
at processing.app.Serial.<init>(Serial.java:141)
... 8 more
Error opening serial port 'COM8'.
@strangejmaster, your topic has been moved to a more suitable location on the forum.
Based on above, the code was uploaded successfully.
I would suggest to remove the shield and upload the blink example. The first time you will probably have the same problem, try a second time and let us know if that succeeded or not.
I'm not familiar with MKR so probably can't help further.
Hey @strangejmaster
i have a small suggestion
if you Computer or Laptop do not respond to the USB ( Micro USB) connected to the devices you are using this may be for lack of serial port in my case while i was using the ESP8266 that happen to me too , so i suggest to have a CH340 install in your computer .
Hoping this help
All the best for what are you doing
Lucky
After installing the driver it said there was no driver to uninstall, should I click "Delete Driver Files when Uninstall?" I'm not using an Arduino Clone either though.
Oops, I didn't mean to delete that anyway thanks but even though the LED and Onboard things work I can't do anything with Serial Log and Mouse controls etc.
If the board behaves anything like 32U4 based boards, there are two COM ports, one for upload and one for normal running. You can verify the behaviour in Windows device manager.
Bootloader
Normal running
The latter is the one that you should select in the IDE; be aware that these ports might change occasionally. So what does your device manager say for the latter?
Although Device Manager still shows 2 ports after refreshing like the picture above including calling COM6 "USB Serial Device" the IDE only displays COM6 "Arduino MKR WiFi 1010"
Basically, the IDE only shows COM# (Arduino MKR WiFi 1010) which in the device manager is USB Serial Device while Arduino MKR WiFi 1010 (COM#) stays in the device manager with a yellow warning symbol also I tried to update the driver but I can't find my "Arduino" folder when I go to my Program Files (x86) folder when I try to update it.