Hello. I'm using 1.8.0 to program an Adafruit Feather M0. When I upload the blink example the IDE says "An error occured while uploading the sketch". The verbose log is below. The funny thing is that the sketch does seem to work (the LED is blinking). I guess I shouldn't be complaining since it seems to work but it's disconcerting getting the error message.
Another thing I should mention, It seems that I have to keep going to "tools -> port" to select the comm port, the port doesn't change but it seems like it's getting deselected which is something I'm not used to on older version of the IDE with more "normal" Arduinos than the feather M0.
Arduino: 1.8.0 (Windows 7), Board: "Adafruit Feather M0 (Native USB Port)"
Sketch uses 8388 bytes (3%) of program storage space. Maximum is 262144 bytes.
Forcing reset using 1200bps open/close on port COM5
PORTS {COM5, } / {COM5, } => {}
PORTS {COM5, } / {} => {}
PORTS {} / {} => {}
PORTS {} / {COM6, } => {COM6, }
Found upload port: COM6
C:\Users\AN18312\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino/bossac.exe -i -d --port=COM6 -U true -i -e -w -v C:\Users\AN18312\AppData\Local\Temp\arduino_build_920416/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 5 2016 17:46:52
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 5 2016 17:46:52
Version : v2.0 [Arduino:XYZ] Mar 5 2016 17:46:52
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.827 seconds
Write 8540 bytes to flash (134 pages)
write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000)
SAM-BA operation failed
[============== ] 47% (64/134 pages)write(addr=0x20005000,size=0x1000)
An error occurred while uploading the sketch
writeBuffer(scr_addr=0x20005000, dst_addr=0x3000, size=0x1000)
[============================ ] 95% (128/134 pages)write(addr=0x20005000,size=0x180)
writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0x180)
[==============================] 100% (134/134 pages)
done in 0.061 seconds
Verify 8540 bytes of flash with checksum.
checksumBuffer(start_addr=0x2000, size=0x1000) = bc7f
checksumBuffer(start_addr=0x3000, size=0x1000) = 93e2
checksumBuffer(start_addr=0x4000, size=0x15c) = 9077
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)
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.