Brand New Feather M0 (RFM69HCW) not loading - SAM-BA operation failed

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rossyu
 
Posts: 6
Joined: Wed Nov 16, 2022 12:01 am

Brand New Feather M0 (RFM69HCW) not loading - SAM-BA operation failed

Post by rossyu »

My new radiofeather is not loading (SAM-BA operation failed; verbose output from load is pasted below).
Suggestions? (Help would be appreciated.)

Saw a few threads on the forum:
1) presently connected through USB2.0 hub (to USB3.0 port on laptop);
2) verified via USB Tree View that COM10 is usb2.0 (and associated with the feather);
========================== Summary =========================
Vendor ID : 0x239A (Adafruit Industries LLC)
Product ID : 0x800C
USB Version : 2.0 -> but Device is Full-Speed only
Port maximum Speed : High-Speed
Device maximum Speed : Full-Speed
Device Connection Speed : Full-Speed
Self powered : no
Demanded Current : 500 mA
Used Endpoints : 4
3) BOSSAC - have not played with updating BOSSA or command line yet. (wanted to get feedback here before doing so.)


----- VERBOSE OUTPUT FROM LOAD -----
Sketch uses 15024 bytes (5%) of program storage space. Maximum is 262144 bytes.
Forcing reset using 1200bps open/close on port COM10
PORTS {COM10, } / {} => {}
PORTS {} / {COM11, } => {COM11, }
Found upload port: COM11
C:\Users\rossa\AppData\Local\Arduino15\packages\adafruit\tools\bossac\1.8.0-48-gb176eee/bossac.exe -i -d --port=COM11 -U -i --offset=0x2000 -w -v C:\Users\rossa\AppData\Local\Temp\arduino_build_750594/MevoBOT_Cam.ino.bin -R

Set binary mode
SAM-BA operation failed
version()=10
Connected at 921600 baud
An error occurred while uploading the sketch

User avatar
TI545
 
Posts: 98
Joined: Tue Feb 27, 2018 5:25 pm

Re: Brand New Feather M0 (RFM69HCW) not loading - SAM-BA operation failed

Post by TI545 »

I'm not sure it's the problem, but I see from the errors you posted, it starts out on com10: and then goes to com11:

I know with arduino, the port number that the board (feather m0) is attached to moves around sometimes. Be sure to check the "Port" in arduino matches before starting the compile and download.

User avatar
rossyu
 
Posts: 6
Joined: Wed Nov 16, 2022 12:01 am

Re: Brand New Feather M0 (RFM69HCW) not loading - SAM-BA operation failed

Post by rossyu »

Thanks TI545. I noticed that as well before posting. While I did not see this on the old UNO I was prototyping on, I had seen similar behavior in a different (non-Arduino, but Cortex-M3) IDE, where the onboard FTDI is mapping multiple comports including serial/keyboard and flash programming.

The "Port" IDE drop-down only comes up with the "com10" option (com11 is not listed). And com10 disappears from the drop down when the feather is unplugged. That and the other part of USB tree view assigns com10 to a Adafruit feather port.

Is this USB com port switching not normal with the feather?

User avatar
TI545
 
Posts: 98
Joined: Tue Feb 27, 2018 5:25 pm

Re: Brand New Feather M0 (RFM69HCW) not loading - SAM-BA operation failed

Post by TI545 »

Are you using the serial monitor? (Probably yes) I just read this post from adafruit support about com: ports changing. News to me, but could explain what I've seen.


viewtopic.php?t=195906

User avatar
rossyu
 
Posts: 6
Joined: Wed Nov 16, 2022 12:01 am

Re: Brand New Feather M0 (RFM69HCW) not loading - SAM-BA operation failed

Post by rossyu »

No, I have not had serial monitor open when uploading. The COM port is not changing on repeated upload attempts. (The ports stay at COM10 and COM11 respectively.)

User avatar
rossyu
 
Posts: 6
Joined: Wed Nov 16, 2022 12:01 am

Re: Brand New Feather M0 (RFM69HCW) not loading - SAM-BA operation failed

Post by rossyu »

BTW, according to adafruit, the M0 boards do indeed have two com's mapped via FTDI (see below). For now, I am assuming ignoring the COM11 (vs COM10) part of the error messages (unless someone has run across this specifically in the scope of the SAM-BA error).

(from the FAQ for feather https://learn.adafruit.com/adafruit-fea ... -radio/faq)
"Theres two COM ports you can have with the 32u4/M0, one is the user port and one is the bootloader port. They are not the same COM port number!"

I have also:
- tried different serial cable
- updated bossac.exe ( from 1.8.0 --> 1.9.1 ; same result)
- tried a second Feather M0 board; same result

using:
Win 11, 64-bit
Arduino IDE 1.8.16
--> board manager: Arduino SAMD Boards (32-bits ARM Cortex-M0+) v 1.8.13
Adafruit SAMD Boards v 1.7.11

User avatar
rossyu
 
Posts: 6
Joined: Wed Nov 16, 2022 12:01 am

Re: Brand New Feather M0 (RFM69HCW) not loading - SAM-BA operation failed

Post by rossyu »

also tried manually putting into bootloader mode (double-click the RST) before uploading, no change in error message

User avatar
rossyu
 
Posts: 6
Joined: Wed Nov 16, 2022 12:01 am

Re: Brand New Feather M0 (RFM69HCW) not loading - SAM-BA operation failed

Post by rossyu »

Found the error (between the keyboard and screen). Wrong IDE SW setup. Once I got the right tutorial up, it steered me right. OK to close

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”