cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to know tried and tested way to interface STM32F469 SPI port to a 3 wire Synchronous serial interface device. Also want to know how to use STMCubeMX/IDE to configure the SPI port to talk to the device and what programming effort may be need

PRama.3
Associate II

Using STM32F469 DISO and STM32F469VGT6 LQFP package for our board.

The device to be interfaced with STM32F469 SPI port has the following pin outs

  • Serial data input/output pin1
  • Serial data input pin2
  • Serial interface clock pin
  • Chip select

1 REPLY 1

Hello @PRama.3​,

First let me welcome you to the STM32 Community 😊

Please excuse the somewhat late reply.

For a detailed description of serial peripheral interface (SPI) , you can refer to the STM32F469xx Reference manual: it explains perfectly the SPI functional description as well as its different modes and features.

Concerning the features and options that can be configured within STM32CubeMX GUI for SPI peripheral, different modes can be selected through SPI Mode panel:

0693W00000BZcSgQAL.jpg 

Selecting “Full-Duplex Master�? mode for example, different parameters could be set through SPI Configuration Panel (NSS, Frame type and size, pin control, baud rate, SPI Mode Number (Clock Phase & Polarity), CRC, and other parameters).

0693W00000BZcTKQA1.pngYou can also enable/disable interrupts for SPI in the NVIC tab if you’re willing to use interrupt mode instead of polling the peripheral. And the same goes for the DMA, you can click the DMA tab to “Add�? a DMA channel dedicated to SPI transfer and configure its parameters.

Furthermore, you can mimic an example that best suits your needs to create your project.

Please refer to the table resuming all the available SPI examples within STM32CubeF4 firmware in the STM32Cube firmware examples for STM32F4 Series Application Note. The examples are organized by board and provided with preconfigured projects for the main supported toolchains.

Examples may be selected directly through Example selector or through the already installed STM32Cube MCU package for F4 series:

0693W00000BZcUcQAL.png 

Hope this answers your question.

Khouloud.