Author Topic: Microchip AN2570 bootloader for SAMD20E  (Read 1186 times)

0 Members and 1 Guest are viewing this topic.

Offline jc101Topic starter

  • Frequent Contributor
  • **
  • Posts: 893
  • Country: gb
Microchip AN2570 bootloader for SAMD20E
« on: August 11, 2026, 03:14:23 pm »
Microchip published a manual and code for a bootloader for the SAMD10 processors under app note AN2570 back in 2017.
I don't suppose anyone has ever updated that for the SAMD20E series and could post the code, ideally as an MPLABX project?

Just looking to save a bit of time if someone has already updated it. My Google Fu didn't find anything.
 

Offline dobsonr741

  • Frequent Contributor
  • **
  • Posts: 979
  • Country: us
Re: Microchip AN2570 bootloader for SAMD20E
« Reply #1 on: August 11, 2026, 03:23:05 pm »
Claude code or Codex can do it for you in no time. Give the AI tools access to your dev env and will make it clean as a whistle.
 

Offline jc101Topic starter

  • Frequent Contributor
  • **
  • Posts: 893
  • Country: gb
Re: Microchip AN2570 bootloader for SAMD20E
« Reply #2 on: August 11, 2026, 03:36:07 pm »
Claude code or Codex can do it for you in no time. Give the AI tools access to your dev env and will make it clean as a whistle.
Interesting idea, may try that as an experiment.

It doesn't help that the original AN2570 code is an Atmel studio project, and though MPLABX tries to import it, it crashes on both my machines when I try.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 12500
  • Country: us
    • Personal site
Re: Microchip AN2570 bootloader for SAMD20E
« Reply #3 on: August 12, 2026, 03:58:26 am »
I am the author of that code, but I absolutely hate MPLAB X, so I can't offer any real help porting it.  I don't think there are official ports, since official bootloaders are a part of Harmony, but they are bloated as a result.

The code is standalone and does not depend on hairy libraries. It should be easy enough to import just the files into a blank project.

D10 and D20 also similar enough that changes would be minimal.

Here is a list of other bootloaders I have in a similar style.
Code: [Select]

bootloader_can_c21
bootloader_i2c_c21
bootloader_i2c_d10
bootloader_i2c_d20
bootloader_i2c_e54
bootloader_i2c_l10
bootloader_uart_c21
bootloader_uart_d10
bootloader_uart_d10_sec
bootloader_uart_d20
bootloader_uart_d21
bootloader_uart_e54
bootloader_uart_e54_sec
bootloader_uart_g55
bootloader_uart_l10
bootloader_uart_l11
bootloader_uart_l11_sec

I will attach non-secure D20 one for reference.

All those bootloaders were created based on customer requests and they were never planned to be supported in a long run. The appnote came to be because we had a quota for appnote releases, so random code became appnotes.
« Last Edit: August 12, 2026, 04:01:07 am by ataradov »
Alex
 
The following users thanked this post: jc101

Offline jc101Topic starter

  • Frequent Contributor
  • **
  • Posts: 893
  • Country: gb
Re: Microchip AN2570 bootloader for SAMD20E
« Reply #4 on: August 12, 2026, 07:51:11 am »
That is a great help, many thanks.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->