Alternate bootloader for SAMDx1?

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
tomjennings
 
Posts: 102
Joined: Thu Aug 17, 2006 1:21 am

Alternate bootloader for SAMDx1?

Post by tomjennings »

Hi, I'm really happy with the Metro M4 and Grand Central hardware.

However loading code in them from the Arduino IDE is very cumbersome, requiring physical access to the RESET switch and closing all the USB drive warnings (in Mac OS). I've got years of code developed in C++, I am unlikely to ever use CircuitPython.

Is there a bootloader that works with the Arduino uploaders, only?

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

Re: Alternate bootloader for SAMDx1?

Post by mikeysklar »

Have you considered not using a bootloader?

You can program the SAMDx1 chips with JTAG/SWD which is supported by the Arduino IDE and many other dev tools. Plus you get the options of having a hardware debugger which really speeds up development.

https://www.adafruit.com/?q=jtag&sort=BestMatch

User avatar
tomjennings
 
Posts: 102
Joined: Thu Aug 17, 2006 1:21 am

Re: Alternate bootloader for SAMDx1?

Post by tomjennings »

mikeysklar wrote: Tue Oct 11, 2022 6:27 pm Have you considered not using a bootloader?
Yes, except for the need for physical access to an embedded device, with a shield on top, within an enclosure under a panel...

I provision for USB access, as the code logs to "console", and then there's also the simplicity of least-change. There's got to be a bootloader of some sort (or ICE/ICP) and a flash change is pretty minimal...

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

Re: Alternate bootloader for SAMDx1?

Post by mikeysklar »

Since you need the USB and therefore a bootloader the best suggestion I have is to checkout the guide for how Adafruit builds its bootloader.

https://learn.adafruit.com/compiling-m0 ... bootloader

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

Return to “Metro, Metro Express, and Grand Central Boards”