Skip to main content
PKyyy.1
Associate
Aug 3, 2020 7:09 PM UTC
Solved

HAL_SPI_Receive() ... Source Code

HIcommunity

I am new to the STM32 world and am looking for the name of the library file in which the function HAL_SPI_Receive (..) is included as source code or the direct source code of this function.

thanks for help

This topic has been closed for replies.
LMI2
LMI2Best answer
Senior III
Aug 3, 2020 7:51 PM UTC

There are many kinds of Stm32 Cpus. Which of them are you going to use.

If you install CubeMx and the support for your CPU family, you'll probably get also SPI examples for your CPU/Board.

Using HAL_SPI_Receive() is easy, Try Googling it.

Earlier this summer I posted main.c of STM32H750 driving Max31865 with SPI.

3 replies

LMI2
LMI2Best answer
Senior III
Aug 3, 2020 7:51 PM UTC

There are many kinds of Stm32 Cpus. Which of them are you going to use.

If you install CubeMx and the support for your CPU family, you'll probably get also SPI examples for your CPU/Board.

Using HAL_SPI_Receive() is easy, Try Googling it.

Earlier this summer I posted main.c of STM32H750 driving Max31865 with SPI.

TDK
Aug 3, 2020 11:36 PM UTC
"If you feel a post has answered your question, please click ""Accept as Solution""."
PKyyy.1
PKyyy.1Author
Associate
Aug 4, 2020 4:02 PM UTC

have meanwhile been able to find the library directly. i use the STM32F103. The library name i found was

stm32f1xx_hal_spi.h and stm32f1xx_hal_spi.c

thanks