Skip to content

Add SPI slave example #1600

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

Closed
brainelectronics opened this issue Dec 15, 2021 · 3 comments
Closed

Add SPI slave example #1600

brainelectronics opened this issue Dec 15, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@brainelectronics
Copy link

The usage of the SPI library in slave mode is not straight forward, maybe even not implemented.

All examples show how to transmit data FROM a STM32 to some Arduino board (which is not a STM32). In some usecases the STM32 should also be able to be the controlled device to provide data to the SPI master or perform low level task.

@brainelectronics
Copy link
Author

Also already requested by @AnHardt in #257 (comment)

@ABOSTM
Copy link
Contributor

ABOSTM commented Dec 16, 2021

Hi @brainelectronics ,
In fact the point is not to have an SPI slave example:
the problem is that SPI library from this core, supports only master and doesn't support slave,
and it is the same for Arduino SPI library.

Note that you can still make use of STM32Cube HAL/LL API within Arduino sketch.
Thus you can look at STM32Cube HAL/LL SPI examples.

@brainelectronics
Copy link
Author

@ABOSTM thanks for clarification.
Meanwhile implemented it with the HAL SPI examples for the project I'm currently working on, just thought as some extension of the SPI lib is currently ongoing it might fit in there as well.

Big thank you for this great package and your contributuion, that is maybe not often enough said 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

3 participants