Skip to content

Add SPI slave example #1600

Closed
Closed

Description

@brainelectronics

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.

Activity

  1. brainelectronics commented on Dec 16, 2021

    @brainelectronics
    Author

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

  2. ABOSTM commented on Dec 16, 2021

    @ABOSTM
    Contributor

    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.

  3. brainelectronics commented on Dec 16, 2021

    @brainelectronics
    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 👍

  4. added
    enhancement
    and removed on Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions