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
Feather M4 CAN stopped working? SAM-BA Operation Failed
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- davidthefuturist
- Posts: 6
- Joined: Tue May 17, 2022 1:53 pm
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Feather M4 CAN stopped working? SAM-BA Operation Failed
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
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
- adafruit2
- Posts: 22148
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Feather M4 CAN stopped working? SAM-BA Operation Failed
if you double click does it appear as a disk drive?
- davidthefuturist
- Posts: 6
- Joined: Tue May 17, 2022 1:53 pm
Re: Feather M4 CAN stopped working? SAM-BA Operation Failed
Yes, thank you! This fixed the problem.adafruit2 wrote:if you double click does it appear as a disk drive?
Please be positive and constructive with your questions and comments.