Skip to content
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

SAM-D2x Support #241

Open
ma-ku opened this issue Sep 9, 2021 · 4 comments
Open

SAM-D2x Support #241

ma-ku opened this issue Sep 9, 2021 · 4 comments

Comments

@ma-ku
Copy link

ma-ku commented Sep 9, 2021

Description

I am currently trying to find a way to flash an Arduino MKR 1010 Wifi using avrgirl-arduino. After tinkering around with different board configurations i realized that none of the supported three protocols seem to suit the protocol expected by the bootloader which seems to be SAM-BA. Now my question if this can be solved with avrgirl-arduino as-is or if we need to add SAM-BA as another protocol?

Expected behaviour

Arduino MKR* boards can be flashed with this library

Actual behaviour

Could not find a board configuration that would allow flashing above chips.

Arduino Board being used

Arduino MKR 1010 WIFI

@rubendax
Copy link

It would be amazing to have SAMD support in avrgirl-arduino, but as this is a library made specifically for AVR devices, as opposed to ARM, it seems like this request is probably outside of the scope...

That being said, if any contributors are looking to expand this project to support SAMD chips, BOSSA is an open source, lighter, and more compatible option that could be used instead of the SAM-BA software. This is what Adafruit uses to upload to their SAMD-based boards. More BOSSA info can be found here.

@ma-ku
Copy link
Author

ma-ku commented Nov 13, 2021

Actually I have partly ported bossa to typescript using web-serial. So Flashing and many other functions of the library are already there. Feel free to play with it. bossa-web

@rubendax
Copy link

@ma-ku Whoa, amazing! I love that you are porting bossa to JS.
I would be very happy to help test or anything like that if needed. I'm far from a JS expert but I've used avrgirl-arduino pretty extensively.

@ma-ku
Copy link
Author

ma-ku commented Nov 14, 2021

Well, it’s quite complete already. Some flashers are still missing but porting is straightforward. I use this code for flashing MKR 1010 WIFIs from a web application

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

No branches or pull requests

2 participants