0

Run CircuitPython on custom SAMD21
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Run CircuitPython on custom SAMD21

by binux on Wed Jun 13, 2018 8:50 am

Hello everyone,

I have a custom SAMD21G18A board. I program it normally with my J-Link, but I would like to test CircuitPython on it.
My question is how can I get this running on it?
Which release should I use (of which adafruit derivate) and is there a way flashing the firmware via J-Link?

Thanks already in advance.

binux
 
Posts: 16
Joined: Thu Mar 17, 2016 4:20 pm

Re: Run CircuitPython on custom SAMD21

by danhalbert on Wed Jun 13, 2018 9:41 am

There are a number of people who have done this already. Many hang out on the #circuitpython channel on discord: https://adafru.it/discord.

CircuitPython is available at https://github.com/adafruit/circuitpython. Build instructions are here: https://learn.adafruit.com/building-circuitpython
You can make up a custom board definition based on the pins you've exposed, any SPI flash on the board, etc. Look in circuitpython/ports/atmel-samd/boards/.

Most boards are set up to load CircuitPython at 8k above 0x0 in the address space, above the UF2 bootloader: https://github.com/adafruit/uf2-samdx1.

danhalbert
 
Posts: 1169
Joined: Tue Aug 08, 2017 12:37 pm

Please be positive and constructive with your questions and comments.