Feather M4 CAN stopped working? 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
davidthefuturist
 
Posts: 6
Joined: Tue May 17, 2022 1:53 pm

Feather M4 CAN stopped working? SAM-BA Operation Failed

Post by davidthefuturist »

Hey guys, I encountered a problem writing code to my Feather M4 CAN units. Doing a little digging, it seems something is wrong with the bootloader and I need to recover it manually. If this is the case, how do I do so?

I looked at this guide over here and it seems that neither of my Feather M4 CAN units appear as drives anymore. https://learn.adafruit.com/adafruit-fea ... bootloader


Error as it appears in the console:

Device : ATSAME51x19
Version : v1.1 [Arduino:XYZ] Dec 1 2020 23:34:37
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 47232 bytes to flash (93 pages)
[== ] 8% (8/93 pages)
An error occurred while uploading the sketch
SAM-BA operation failed

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

Re: Feather M4 CAN stopped working? SAM-BA Operation Failed

Post by mikeysklar »

Do you still see the serial device when plugged in to your computer? If so you can use BOSSA to install the bootloader via command-line.

https://learn.adafruit.com/adafruit-fea ... er-details

The next easiest way requires additional hardware. A SEGGER j-link programmer.

viewtopic.php?f=57&t=142170&start=15

Finally, there is a way to flash a bootloader on using another SAMD board.

https://learn.adafruit.com/how-to-progr ... ootloaders

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Feather M4 CAN stopped working? SAM-BA Operation Failed

Post by adafruit2 »

if you double click does it appear as a disk drive?

User avatar
davidthefuturist
 
Posts: 6
Joined: Tue May 17, 2022 1:53 pm

Re: Feather M4 CAN stopped working? SAM-BA Operation Failed

Post by davidthefuturist »

adafruit2 wrote:if you double click does it appear as a disk drive?
Yes, thank you! This fixed the problem.

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

Return to “Feather - Adafruit's lightweight platform”