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

SAMD51 SPI Slave Mode #2131

Open
gingle opened this issue Sep 9, 2019 · 11 comments
Open

SAMD51 SPI Slave Mode #2131

gingle opened this issue Sep 9, 2019 · 11 comments

Comments

@gingle
Copy link

gingle commented Sep 9, 2019

I would like to use the Metro M4 as a remote controller run by a master microcontroller. I need to read A/D results and send D/A levels as well as set logic pins. I am worried that the I2C and RX/TX lines are not fast enough and perhaps not as free from errors.

@dhalbert dhalbert added this to the Long term milestone Sep 9, 2019
@tannewt
Copy link
Member

tannewt commented Sep 9, 2019

@gingle It's not a high priority for us but we'd love a PR if you implement it yourself. We're also happy answering questions to get you started on it. I'd suggest looking at I2CSlave as a model for it.

@gingle
Copy link
Author

gingle commented Sep 9, 2019

Can you point me to the I2CSlave code?

@gingle gingle closed this as completed Sep 9, 2019
@tannewt
Copy link
Member

tannewt commented Sep 9, 2019

@gingle
Copy link
Author

gingle commented Sep 9, 2019

I would leave it open for the long term. I have a lot on my plate so my work on this will be intermittent. Thanks for the links.

@tannewt
Copy link
Member

tannewt commented Sep 9, 2019

Ok, reopened! No worries if it takes time. Please reach out if you have questions! Thanks!

@tannewt tannewt reopened this Sep 9, 2019
@wallarug
Copy link

wallarug commented Oct 7, 2019

@gingle have you made any progress on this? I'm very interested in getting this going.

@gingle
Copy link
Author

gingle commented Oct 7, 2019

@gingle have you made any progress on this? I'm very interested in getting this going.

Not for now. I have been sidetracked for awhile.

@Meschmid23
Copy link

I also would like to use the SAMD51 (Adafruit feather M4) as a SPI slave. Please let us know once progress has been made.

@Randall-Scharpf
Copy link

Hi all! Not sure what the current status of progress is on this, but for a set of boards I'm working on, we've needed to get SPI communication between two SAM D51 boards running CircuitPython.* Our code is a bit of a mess right now since it's just for our internal project, but (admittedly not having looked through the commits mentioned here) it might be helpful developing this feature, if there's anyone else still interested in getting it running. Namely, I've noticed some talk in the issue linked here about messing with the DMA controller to get it working, and we've had to do that. We've got a fork at https://github.com/Bruin-Spacecraft-Group/bruinspace-circuitpython/tree/cfa4425d3443ebb54ace97f78d477a34079b44cd if you'd like to take a look. If there's anything you'd like from us to help with establishing these changes for others or documenting what we've done, let us know!

@jepler
Copy link
Member

jepler commented May 10, 2024

When an issue is tagged "long term", Adafruit isn't prioritizing work on it. But we're always happy if a community member can contribute something!

@tannewt
Copy link
Member

tannewt commented May 13, 2024

@Randall-Scharpf The easiest way for us to review what you've done is to make a pull request to this repo. That will show us a diff of changes that we can comment on. https://learn.adafruit.com/contribute-to-circuitpython-with-git-and-github/create-your-pull-request

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

No branches or pull requests

8 participants