SAM-BA Operation Failed

Hi,
I just got a Nano 33 IOT board, but keep getting this SAM-BA error when I upload any sketch (I haven't coded anything - just trying to upload 'Blink').

I should note that the sketch DOES successfully load & run on the nano, but it's concerning to see an error message (attached).

I've tried a couple different known-good cables, and used various USB ports on my PC (Win 10). I've looked at lots of other users' comments about the SAM-BA error, but no one seems to have found a solution. Any ideas??

Thanks!

SAM-BA.pdf (43.6 KB)

Hi and welcome to the forum! Please copy the error messages and paste them in a post...Also your code should be pasted in code tags ( </> )...All this is covered in how to get the best out of the forum! Thanks!

OP's SAM-BA.pdf file:

Arduino: 1.8.12 (Windows 7), Board: "Arduino NANO 33 IoT"
Set binary mode
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
version()=v2.0 [Arduino:XYZ] Apr 19 2019 14:38:48
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] Apr 19 2019 14:38:48
Version : v2.0 [Arduino:XYZ] Apr 19 2019 14:38:48
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.814 seconds
Write 11456 bytes to flash (179 pages)
write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000)
[========== ] 35% (64/179 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x3000, size=0x1000)
SAM-BA operation failed
An error occurred while uploading the sketch
[===================== ] 71% (128/179 pages)write(addr=0x20005000,size=0xcc0)
writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0xcc0)
[==============================] 100% (179/179 pages)
done in 0.086 seconds
Verify 11456 bytes of flash with checksum.
checksumBuffer(start_addr=0x2000, size=0x1000) = edcb
checksumBuffer(start_addr=0x3000, size=0x1000) = 2aa9
checksumBuffer(start_addr=0x4000, size=0xcc0) = 4bc9
Verify successful
done in 0.016 seconds
CPU reset.
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
writeWord(addr=0xe000ed0c,value=0x5fa0004)

Hi KLattig,

welcome to the forum.

The output finishes with "Verify successful". If your board works, I would ignore the error for now and see what happens in the future.
Try to remember what you do before you upload a sketch. Maybe you had another board connected at the same time or before. Try another USB port. It could be something specific to the PC you are using. If you have another one try that.