Skip to content

Add new port to Microchip SAMD microcontrollers #4863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 1, 2019

Conversation

dpgeorge
Copy link
Member

This adds basic support for SAMD21 and SAMD51 microcontrollers under the ports/samd/ directory.

Boards that are supported are Adafruit Trinket M0 and ItsyBitsy M4 Express. A USB REPL is available, as well as a UART REPL. Firmware size is around 100k with big-ints enabled, and floats enabled on the M4 Express.

CMSIS header files are provided by the new asf4 submodule (and only CMSIS headers are used from there).

The USB driver is provided by the tinyusb project, which is added as a submodule as well.

The bootloader on the supported Adafruit boards is UF2, and a tool is added to build UF2 files (direct from upstream https://github.com/Microsoft/uf2). Deployment must be done manually by entering the bootloader (double-tap the RST button), mounting the board's drive and then copying over firmware.uf2.

@profra
Copy link

profra commented Jun 22, 2019

Thank you for the first steps in that direction. It would be also a nice implementation for the new Arduino Nano 33 IoT board ... any plans in this direction?

@shazz
Copy link

shazz commented Jun 23, 2019

Great news! I'll try to add the board files for the Adafruit pygamer (ATSAMD51)

@dpgeorge
Copy link
Member Author

It would be also a nice implementation for the new Arduino Nano 33 IoT board ... any plans in this direction?

It's straightforward to support the SAMD21 part of that board, but supporting the esp32 WiFi coprocessor is a lot more effort, and there are currently no plans for that.

@ladyada
Copy link
Contributor

ladyada commented Jun 24, 2019

support for the esp32 wifi coproc is here https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI but it does not fit in the low memory of the '21 at this time!

@dpgeorge
Copy link
Member Author

support for the esp32 wifi coproc is here

Cool, thanks for the link!

@dpgeorge dpgeorge merged commit 9ca4789 into micropython:master Jul 1, 2019
@shazz
Copy link

shazz commented Jul 6, 2019

@dpgeorge, I added the Adafruit pygamer board:

MPY: soft reboot
MicroPython v1.11-126-g7c2e83324-dirty on 2019-07-06; Adafruit PyGamer with SAMD51J19A
>>> print("hello pygamer!")
hello pygamer!

Would you accept a pull request ?

I'll work on a display driver now.

@dpgeorge dpgeorge deleted the samd-port branch July 8, 2019 14:28
@dpgeorge
Copy link
Member Author

dpgeorge commented Jul 8, 2019

Would you accept a pull request ?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy