[SOLVED] STM32 as SPI slave

Working libraries, libraries being ported and related hardware
Post Reply
jgromes
Posts: 6
Joined: Sat Feb 15, 2020 10:43 am

[SOLVED] STM32 as SPI slave

Post 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!
Last edited by jgromes on Wed Feb 19, 2020 5:29 pm, edited 1 time in total.
mrburnette
Posts: 633
Joined: Thu Dec 19, 2019 1:23 am
Answers: 7

Re: STM32 as SPI slave

Post by mrburnette »

Try a Google search like this spi + slave site:github.com/stm32duino

here
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: STM32 as SPI slave

Post by fpiSTM »

There is no dedicated API for this.
You can try to use HAL/LL for this.
jgromes
Posts: 6
Joined: Sat Feb 15, 2020 10:43 am

Re: STM32 as SPI slave

Post 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?
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: [SOLVED] STM32 as SPI slave

Post by fpiSTM »

While this not breaks Arduino API and generic for all series, why not.😉
Post Reply

Return to “Libraries & Hardware”