Skip to main content
Anandbalu
Associate II
January 19, 2023
Question

How to enable SPI in STM32WB5MMG using STMCubeIDE?

  • January 19, 2023
  • 6 replies
  • 2072 views

We made a custom PCB board using STM32WB5MMG. We tried connecting with ADS1299 using SPI, but we are new to this controller. So we didn't know how to enable SPI and transfer and receive data from it.

Thanks,

This topic has been closed for replies.

6 replies

Bubbles
ST Employee
January 19, 2023

Hi @Anandbalu​,

download STM32CubeMX - STM32Cube initialization code generator - STMicroelectronics and use this tool to set the target configuration in the GUI. Then the tool will generate the project with initalization code for you.

BR,

J

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
MM..1
Super User
January 19, 2023

And code for transfer you found on firmware folder examples or on STM32CubeWB/Projects at master · STMicroelectronics/STM32CubeWB · GitHub

Anandbalu
AnandbaluAuthor
Associate II
January 23, 2023

Hi @MM..1​ 

Thank you for your reply,

The mentioned link has QSPI examples. Can we have any simple SPI1 or SPI2 examples?

It would be more helpful to us.

Thanks,

Ananthakumar

MM..1
Super User
January 23, 2023
Try explain where here is QSPI
STM32CubeWB/Projects/P-NUCLEO-WB55.Nucleo/Examples/SPI at master · STMicroelectronics/STM32CubeWB (github.com)
Javier1
Principal
January 23, 2023

If youre using cubeMX, and HAL libraries it should be the same as in https://controllerstech.com/how-to-use-spi-with-stm32/

hit me up in https://www.linkedin.com/in/javiermuñoz/
MM..1
Super User
January 23, 2023

Stm32cubeIDE have same wizard for config board simply click on SPI and setup for example

0693W00000Y8uoEQAR.pngor for module 0693W00000Y8uqPQAR.png