cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable SPI in STM32WB5MMG using STMCubeIDE?

Anandbalu
Associate II

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,

6 REPLIES 6
Bubbles
ST Employee

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
Chief II

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

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

Try explain where here is QSPI
STM32CubeWB/Projects/P-NUCLEO-WB55.Nucleo/Examples/SPI at master · STMicroelectronics/STM32CubeWB (github.com)
Javier1
Principal

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

we dont need to firmware by ourselves, lets talk
MM..1
Chief II

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

0693W00000Y8uoEQAR.pngor for module 0693W00000Y8uqPQAR.png