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

Using SPISlave_T4 with SPI1 #3

Open
playaspec opened this issue Aug 27, 2021 · 1 comment
Open

Using SPISlave_T4 with SPI1 #3

playaspec opened this issue Aug 27, 2021 · 1 comment

Comments

@playaspec
Copy link

I've been trying to get this library going for use with SPI1, but aren't having much luck. I made a copy, and changed the IOMUX* entries to match that of the Teensy4.1's SPI1, but so far no go.

The project I'm working on does simultaneous sampling of two SPI ADCs, with the main SPI (ADC0) acting as master for the SPI1 (ADC1) slave. At one point I tried making SPI1 the master, and using your library stock as the slave, but for whatever reason, the Teensy would hang early in boot.

I'm sure I've messed something up along the way, and would appreciate a few pointers.

@playaspec
Copy link
Author

I've forked your version, and made the changes that appeared to make sense, but still not getting data in or out. It compiles fine, doesn't crash, but the i.MX RT1062 is uncharted territory for me. I'm offering a bounty for a working version. If you have the time, please take a look. I'm also positing the bounty to a couple Reddit subs, just so I can move past this, and get on to the application code. My version is here:

https://github.com/playaspec/SPI1Slave_T4

Thanks again. I wouldn't be this far without your code to start from.

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

1 participant