Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Feather M0 RFM9x (SAM-BA Operation Failed)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather M0 RFM9x (SAM-BA Operation Failed)

by gsowards on Sun Aug 09, 2020 5:31 pm

I have a Feather M0 RFM9x and I'm having trouble uploading a sketch onto it: I'm receiving a 'SAM-BA operation failed' error

I can put the device into boot loader mode with the double push of the reset button (and the led starts to fade in and out), but once the Arduino IDE starts to upload the sketch the led stop fading and the upload fails.

I've tried switching USB cables already.

When I put it into boot loader mode I can see the FEATHERBOOT volume showup on my Mac, but when I try to copy the circuit python UF2, the copy fails and locks up finder. What am I doing wrong, and how do I fix it?

Attached Error Output:
Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.13 (Mac OS X), Board: "Adafruit Feather M0, Arduino, Off"

Sketch uses 19436 bytes (7%) of program storage space. Maximum is 262144 bytes.
Forcing reset using 1200bps open/close on port /dev/cu.usbmodem143101
...
Uploading using selected port: /dev/cu.usbmodem143101
/Library/Arduino15/packages/arduino/tools/bossac/1.7.0-arduino3/bossac -i -d --port=cu.usbmodem143101 -U true -i -e -w -v /var/folders/rx/r6rskr013wb1nzgm4_g3ny9h0000gn/T/arduino_build_555964/update-bootloader-feather_m0-v2.0.0-adafruit.7.ino.bin -R

Set binary mode
An error occurred while uploading the sketch
readWord(addr=0)=0x20002dd8
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
version()=v1.1 [Arduino:XYZ] Nov  2 2018 22:52:39
chipId=0x10010005
Connected at 921600 baud
readWord(addr=0)=0x20002dd8
readWord(addr=0xe000ed00)=0x410cc601
SAM-BA operation failed
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)=0x20002dd8
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Chip ID      : 10010005
version()=v1.1 [Arduino:XYZ] Nov  2 2018 22:52:39
Version      : v1.1 [Arduino:XYZ] Nov  2 2018 22:52:39
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 5.001 seconds

Write 19692 bytes to flash (308 pages)
write(addr=0x20005000,size=0x1000)


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

gsowards
 
Posts: 2
Joined: Sat Aug 08, 2020 7:42 pm

Please be positive and constructive with your questions and comments.