cancel
Showing results for 
Search instead for 
Did you mean: 

SPI problem

PINI BITON
Associate II
Posted on December 25, 2015 at 14:56

hallo

i use in stm32f4 with Keil uVision5 and STM32CubeMX

(i cunfig spi with cubemx )

I can not find the SPI function that send/receive data 

i want to send and receive data from accelerometer

1 REPLY 1
Walid FTITI_O
Senior II
Posted on June 20, 2016 at 11:50

Hi biton.pini,

CubeMx helps you to generate only the initialization code. Otherwise, you should add your own to built you application. In your use case, I recommend you to take a look to the '' SPI_FullDuplex_ComIT'' example in

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef4.html

and compare the code there with your code. The example at this path: STM32Cube_FW_F4_V1.12.0\Projects\STM32F4-Discovery\Examples\SPI\SPI_FullDuplex_ComIT

-Hannibal-