cancel
Showing results for 
Search instead for 
Did you mean: 

Mems gyrometre used in STM32F429 discovery board

NSemrHomeInit
Senior

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,

1 REPLY 1

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
Up vote any posts that you find helpful, it shows what's working..