Error in uploading sketch


I am getting an error in uploading a sketch. I have downloaded all the libraries and the driver. I am running on Windows 7. The device appears, I can select the port and Industruino as my board. Still no luck uploading. I get a "CPU Reset" error at the end. I've copied and the error log below:

Sketch uses 9664 bytes (3%) of program storage space. Maximum is 262144 bytes.
Atmel SMART device 0x10010005 found
Device       : ATSAMD21G18A
Chip ID      : 10010005
Version      : v2.0 [Arduino:XYZ] Aug  1 2017 11:04:45
Address      : 16384
Pages        : 3840
Page Size    : 64 bytes
Total Size   : 240KB
Planes       : 1
Lock Regions : 16
Locked       : none
Security     : false
Boot Flash   : true
BOD          : true
BOR          : true
Arduino      : FAST_CHIP_ERASE
Erase flash
done in 0.685 seconds

Write 9936 bytes to flash (156 pages)

[============                  ] 41% (64/156 pages)
[========================      ] 82% (128/156 pages)
SAM-BA operation failed
An error occurred while uploading the sketch

[==============================] 100% (156/156 pages)
done in 0.099 seconds

Verify 9936 bytes of flash with checksum.
Verify successful
done in 0.010 seconds
CPU reset.


Maher Shaikh
Maher Shaikh
| 1 1 1
Asked on 11/1/18, 4:43 PM

Hi, you can safely ignore the sam-ba error and it seems your sketch was uploaded successfully.

The easiest way to check is using the standard Blink example and change the LED_BUILTIN to pin 26 which has the LCD backlight. After upload, the screen will go on/off/on/off..

| 1 1 3
Answered on 11/1/18, 11:22 PM

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

50 follower(s)


Asked: 11/1/18, 4:43 PM
Seen: 2665 times
Last updated: 11/1/18, 11:22 PM