Page 1 of 1

[SOLVED] STM32 as SPI slave

Posted: Sat Feb 15, 2020 10:47 am
by jgromes
Hi,

Is there support for slave mode in the Arduino core? I can't seem to find anything relevant in the SPI library source.

Thanks!

Re: STM32 as SPI slave

Posted: Tue Feb 18, 2020 2:12 am
by mrburnette
Try a Google search like this spi + slave site:github.com/stm32duino

here

Re: STM32 as SPI slave

Posted: Tue Feb 18, 2020 6:51 am
by fpiSTM
There is no dedicated API for this.
You can try to use HAL/LL for this.

Re: STM32 as SPI slave

Posted: Wed Feb 19, 2020 5:27 pm
by jgromes
mrburnette wrote: Tue Feb 18, 2020 2:12 am Try a Google search like this spi + slave site:github.com/stm32duino

here
Which result of that incredibly helpful Google search is even remotely related to my question? I'm asking precisely because I couldn't find anything, neither in the repository issues nor in the library code.
fpiSTM wrote: Tue Feb 18, 2020 6:51 am There is no dedicated API for this.
You can try to use HAL/LL for this.
Thanks, I ended up having to use DMA for my project, but I'll see if I can add simple interrupt-driven support for SPI slave mode - would a PR for this be accepted?

Re: [SOLVED] STM32 as SPI slave

Posted: Wed Feb 19, 2020 6:30 pm
by fpiSTM
While this not breaks Arduino API and generic for all series, why not.😉