Matrix Portal 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
timmcphail
 
Posts: 2
Joined: Thu Apr 08, 2021 3:47 pm

Matrix Portal SAM-BA Operation Failed

Post by timmcphail »

Received the Matrix Portal, got the Arduino IDE set up, everything working fine. Uploading the "pixeldust" sketch no problem for the first 3 or 4 times, making minor modifications to the code to explore. Now getting an error when uploading the either my modified or original sketch (see below). Didn't change any cables, ports or anything but some code in the sketch. Tried closing and restarting the Arduino IDE with no success. Interestingly, the first failed attempt got to about 30%, the second failed attempt got to about 20% and finally this third attempt got to 10% only. Any help is greatly appreciated.

Arduino: 1.8.13 (Mac OS X), Board: "Adafruit Matrix Portal M4 (SAMD51), Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, Off"

Sketch uses 39496 bytes (7%) of program storage space. Maximum is 507904 bytes.
Device : ATSAMD51x19
Version : v1.1 [Arduino:XYZ] Sep 13 2020 00:07:13
Address : 0x0
Pages : 1024
Page Size : 512 bytes
Total Size : 512KB
Planes : 1
Lock Regions : 32
Locked : none
Security : false
BOD : false
BOR : true
Write 40816 bytes to flash (80 pages)
[=== ] 10% (8/80 pages)
SAM-BA operation failed
An error occurred while uploading the sketch


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

User avatar
mikeysklar
 
Posts: 14194
Joined: Mon Aug 01, 2016 8:10 pm

Re: Matrix Portal SAM-BA Operation Failed

Post by mikeysklar »

This sounds like a bootloader update will resolve it. I've seen that in the case of other SAMD boards that print out the SAM-BA operation failed message.

You can pickup the latest v3.13.0 here for the matrix portal m4. We have variety of ways to install it, but the easiest is to double click the reset button to get into bootloader mode and see the mounted BOOTPY drive. Then drop the appropriate matrixprotal UF2 file onto the icon to update.

https://github.com/adafruit/uf2-samdx1/ ... ag/v3.13.0

User avatar
timmcphail
 
Posts: 2
Joined: Thu Apr 08, 2021 3:47 pm

Re: Matrix Portal SAM-BA Operation Failed

Post by timmcphail »

Thanks! I'll give that a try. Fingers crossed. Excited to start coding with the Matrix Portal.

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

Return to “Itsy Bitsy Boards”