cancel
Showing results for 
Search instead for 
Did you mean: 

Interface STM32L4 MCU with BLUENRG-M2SA Module via SPI

Muyeez
Associate

Hello ST Community,

I’m currently working on a project where I’m using the STM32L475RGT6 MCU to interface with the BlueNRG-M2SA Bluetooth module via SPI. The goal is to establish BLE communication between the MCU and a mobile device. However, I’ve encountered a few challenges and would appreciate guidance or reference material.

If anyone has:

  • A working DTM firmware or BLE SPI reference for STM32L4 + BlueNRG-M2SA
  • A minimal working .ioc + main.c + app_bluenrg_2.c
  • Any tips on pin configuration, middleware integration, or BLE stack setup
2 REPLIES 2
KDJEM.1
ST Employee

Hello @Muyeez and welcome to the community;

 

May be these ressources can help you:

KDJEM1_0-1760024825240.png

You can find in the readme file the used pins for SPI:
- CS: DIO11
- MISO: DIO2
- MOSI: DIO3
- CLCK: DIO0
- IRQ: DIO7

Thank you.

Kaouthar

 

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.

- CS: DIO11
- MISO: DIO2
- MOSI: DIO3
- CLCK: DIO0
- IRQ: DIO7 

i wanted to know the proper spi file which can make the module advertise and communicate with stm32l475rgt6 and it is a custom board. i have attached the schematic too in which i wanted to know is it correct if correct what could be the fault that im not able to communicate