SAMD21G15 Bootloader

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rdevries
 
Posts: 27
Joined: Wed Mar 02, 2011 12:04 am

SAMD21G15 Bootloader

Post by rdevries »

Hello,
Is there a bootloader which can be used on the SAMD21G15 microcontroller?
I have tried the Feather M0 bootloader but it doesn't seem to work for me.
Understanding that the flash and ram are smaller.

Thanks,

User avatar
84ace
 
Posts: 1
Joined: Tue Sep 07, 2021 12:55 am

Re: SAMD21G15 Bootloader

Post by 84ace »

I am in the same position. Did you figure anything out?

User avatar
Franklin97355
 
Posts: 23940
Joined: Mon Apr 21, 2008 2:33 pm

Re: SAMD21G15 Bootloader

Post by Franklin97355 »

Are you using Adafruit boards?

User avatar
westfw
 
Posts: 2010
Joined: Fri Apr 27, 2007 1:01 pm

Re: SAMD21G15 Bootloader

Post by westfw »

Is there a bootloader which can be used on the SAMD21G15 microcontroller?
I have tried the Feather M0 bootloader but it doesn't seem to work for me.
  1. The G15 variant only has 4k of RAM, while the existing bootloader binaries assume a chip with 32k of RAM. At a minimum, you'd need to recompile the bootloader from source with options set to match the G15.
  2. The current bootloader makefiles do not support the G15.
  3. The current bootloader makefiles seem to assume a very particular version of tools in a particular place. I don't know if that's out of caution, or because there are known problems with other versions.
  4. (The Atmel spec for SAM-BA that I found seems to require the IAR compiler.)
  5. Adafruit doesn't have any products based on the G15, so they certainly don't support a bootloader for it.
  6. The existing bootloaders use 8k of flash. The G15 only has 32k; that means you'd be using a full 1/4 of your memory space for the bootloader.
All that seems a bit depressing.

You might want to take a look at Mattair Tech's software. They've implemented a couple of Arduino-compatible bootloaders for smaller SAMD chips (including SAMD11!), and seem to have at least substantially re-written the makefile to be less fussy.
https://github.com/mattairtech/ArduinoC ... aders/zero

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

Return to “Arduino”