Set binary mode readWord(addr=0)=0x20002de0 readWord(addr=0xe000ed00)=0x410cc601 readWord(addr=0x41002018)=0x10010305 version()=v1.1 [Arduino:XYZ] Feb 28 2023 08:45:08 chipId=0x10010005 Connected at 921600 baud readWord(addr=0)=0x20002de0 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)=0x20002de0 readWord(addr=0xe000ed00)=0x410cc601 readWord(addr=0x41002018)=0x10010305 Chip ID : 10010005 version()=v1.1 [Arduino:XYZ] Feb 28 2023 08:45:08 Version : v1.1 [Arduino:XYZ] Feb 28 2023 08:45:08 Address : 8192 Pages : -129 Page Size : 64 bytes Total Size : 4194295KB 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)=0x27000e BOD : true readWord(addr=0x40000834)=0x27000e BOR : true Arduino : FAST_CHIP_ERASE Arduino : FAST_MULTI_PAGE_WRITE Arduino : CAN_CHECKSUM_MEMORY_BUFFER Erase flash chipErase(addr=0x2000) done in 0.861 seconds Write 729416 bytes to flash (11398 pages) write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000) [ ] 0% (64/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x3000, size=0x1000) [ ] 1% (128/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0x1000) [ ] 1% (192/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x5000, size=0x1000) [ ] 2% (256/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x6000, size=0x1000) [ ] 2% (320/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x7000, size=0x1000) [= ] 3% (384/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x8000, size=0x1000) [= ] 3% (448/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x9000, size=0x1000) [= ] 4% (512/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0xa000, size=0x1000) [= ] 5% (576/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0xb000, size=0x1000) [= ] 5% (640/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0xc000, size=0x1000) [= ] 6% (704/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0xd000, size=0x1000) [== ] 6% (768/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0xe000, size=0x1000) [== ] 7% (832/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0xf000, size=0x1000) [== ] 7% (896/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x10000, size=0x1000) [== ] 8% (960/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x11000, size=0x1000) [== ] 8% (1024/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x12000, size=0x1000) [== ] 9% (1088/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x13000, size=0x1000) [=== ] 10% (1152/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x14000, size=0x1000) [=== ] 10% (1216/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x15000, size=0x1000) [=== ] 11% (1280/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x16000, size=0x1000) [=== ] 11% (1344/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x17000, size=0x1000) [=== ] 12% (1408/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x18000, size=0x1000) [=== ] 12% (1472/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x19000, size=0x1000) [==== ] 13% (1536/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x1a000, size=0x1000) [==== ] 14% (1600/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x1b000, size=0x1000) [==== ] 14% (1664/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x1c000, size=0x1000) [==== ] 15% (1728/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x1d000, size=0x1000) [==== ] 15% (1792/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x1e000, size=0x1000) [==== ] 16% (1856/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x1f000, size=0x1000) [===== ] 16% (1920/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x20000, size=0x1000) [===== ] 17% (1984/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x21000, size=0x1000) [===== ] 17% (2048/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x22000, size=0x1000) [===== ] 18% (2112/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x23000, size=0x1000) [===== ] 19% (2176/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x24000, size=0x1000) [===== ] 19% (2240/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x25000, size=0x1000) [====== ] 20% (2304/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x26000, size=0x1000) [====== ] 20% (2368/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x27000, size=0x1000) [====== ] 21% (2432/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x28000, size=0x1000) [====== ] 21% (2496/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x29000, size=0x1000) [====== ] 22% (2560/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x2a000, size=0x1000) [====== ] 23% (2624/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x2b000, size=0x1000) [======= ] 23% (2688/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x2c000, size=0x1000) [======= ] 24% (2752/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x2d000, size=0x1000) [======= ] 24% (2816/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x2e000, size=0x1000) [======= ] 25% (2880/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x2f000, size=0x1000) [======= ] 25% (2944/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x30000, size=0x1000) [======= ] 26% (3008/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x31000, size=0x1000) [======== ] 26% (3072/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x32000, size=0x1000) [======== ] 27% (3136/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x33000, size=0x1000) [======== ] 28% (3200/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x34000, size=0x1000) [======== ] 28% (3264/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x35000, size=0x1000) [======== ] 29% (3328/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x36000, size=0x1000) [======== ] 29% (3392/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x37000, size=0x1000) [========= ] 30% (3456/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x38000, size=0x1000) [========= ] 30% (3520/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x39000, size=0x1000) [========= ] 31% (3584/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x3a000, size=0x1000) [========= ] 32% (3648/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x3b000, size=0x1000) [========= ] 32% (3712/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x3c000, size=0x1000) [========= ] 33% (3776/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x3d000, size=0x1000) [========== ] 33% (3840/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x3e000, size=0x1000) [========== ] 34% (3904/11398 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x3f000, size=0x1000) [========== ] 34% (3968/11398 pages) write(addr=0x20005000,size=0x1000) SAM-BA operation failed writeBuffer(scr_addr=0x20005000, dst_addr=0x40000, size=0x1000) An error occurred while uploading the sketch