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,
SAMD21G15 Bootloader
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- 84ace
- Posts: 1
- Joined: Tue Sep 07, 2021 12:55 am
Re: SAMD21G15 Bootloader
I am in the same position. Did you figure anything out?
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: SAMD21G15 Bootloader
Are you using Adafruit boards?
- westfw
- Posts: 2010
- Joined: Fri Apr 27, 2007 1:01 pm
Re: SAMD21G15 Bootloader
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.
- 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.
- The current bootloader makefiles do not support the G15.
- 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.
- (The Atmel spec for SAM-BA that I found seems to require the IAR compiler.)
- Adafruit doesn't have any products based on the G15, so they certainly don't support a bootloader for it.
- 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.
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
Please be positive and constructive with your questions and comments.