Arduino. STM32 SPI slave example

I can find many many examples of SPI master, but none SPI slaves. Is it possible to use the standard lib to create an SPI slave for Arduino ?. I am trying it on the Bluepill stm32F103.

Thanks

They really didn’t implement that in the core’s SPI library.

There’s a PR open with Add SPI slave support and basic example by brainelectronics · Pull Request #1612 · stm32duino/Arduino_Core_STM32 · GitHub. You can pull the modified library from there and use it instead. (lib_deps = SPI=file://lib/SPI if you place the lib in SPI) and use the appropriate example.

Thanks, will try and report