Skip to main content
NSemrHomeInit
Associate III
February 26, 2023
Question

Mems gyrometre used in STM32F429 discovery board

  • February 26, 2023
  • 1 reply
  • 867 views

Dear ST community Hello,

I want to use the gyro-meter on the the STM32F discovery board and communicate on SPI,

I am using the default configuration with cubeIDE and I have a question in Cude Mx graphical interface.

After generating the code using Cube IDE, I could see the the MISO MOSI and clock are available in the SPI section but not the CS.

I could not understand this because normally each SPI has a CS pin even if the Slave selection is automatic.

The second thing I could not understand the hardware input output NSS that we could select from the top of the SPI Mode and configuration.

Could you help me clarify these points please,

Thank you in advance,

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
February 26, 2023

Given the awkward way the STM32 SPI deals with CS/NSS pins, most just use an arbitrary GPIO

In newer iterations it has the I3G4250D

In older ones L3GD20

STM32F429I-Discovery_FW_V1.0.1\Projects\Peripheral_Examples\MEMS_Example\readme.txt

STM32Cube_FW_F4_V1.24.2\Projects\STM32F429I-Discovery\Examples\BSP\readme.txt

STM32Cube_FW_F4_V1.24.2\Projects\STM32F429I-Discovery\Examples\BSP\Src\mems.c

STM32Cube_FW_F4_V1.24.2\Drivers\BSP\STM32F429I-Discovery\stm32f429i_discovery_gyroscope.c

STM32Cube_FW_F4_V1.24.2\Drivers\BSP\Components\l3gd20\l3gd20.c

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..