cancel
Showing results for 
Search instead for 
Did you mean: 

SPBTLE-1S SPI_IRQ pin?

Baptiste Nguyen
Associate
Posted on April 25, 2018 at 11:18

Hello, I want to make a PCB with a microcontroller STM32L476RG and a Bluetooth module SPBTLE-1S. I plan to use the SPI for the communication beetween the microcontroller and the BLE module but I don't know which pin of this module is used for the interruptions. The older module SPBTLE-RF has a SPI_IRQ pin. Is there a similar pin on the SPBTLE-1S module?

Thanks in advance for your answers.

#bluetooth-low-energy
2 REPLIES 2
Antonio Vilei
Senior III
Posted on April 27, 2018 at 11:05

DearBaptiste Nguyen,

the

SPBTLE-1S module is based on the BlueNRG-1 chip, which can be used as standalone application processor, able to run the user code for your application along with the BLE stack,

without

the need of an external microcontroller.

If you want to use it with an external microcontroller via SPI, just as you did with the SPBTLE-RF module,

you need to load the

DTM_SPI.hex

firmware image on your BlueNRG-1 chip.

Assuming that you have already downloaded the latest version (2.6.0 at the time of this writing) of the BlueNRG-1/2 Development Kit (

/external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fcontent%2Fst_com%2Fen%2Fproducts%2Fembedded-software%2Fevaluation-tool-software%2Fstsw-bluenrg1-dk.html

), you can refer to theprocedure described in the '

STM32_SPI_protocol_example.html

'file in the documentation folder of this package (

Docs\STM32_SPI_protocol_example_html\STM32_SPI_protocol_example.html

).

More details about the SPI protocol used by BlueNRG-1/2 are available in the '

SPI_protocol_specification.html

' file (

Docs\SPI_protocol_specification\SPI_protocol_specification.html

).

IMPORTANT NOTE

: as you are using the SPBTLE-1S module, please notice that it is based on a32 MHz crystal, whileexamples foundfor BlueNRG-1 are usually configured fora 16 MHz crystal (the one used in the EVAL-IDB007V1 board).

Please follow this

https://community.st.com/thread/46418-spbtle-1s-how-to-get-a-ble-connection

for more information about how to rebuild your binaries for 32 MHz.

You can find related information about usage of BlueNRG-1 via SPI by following this

https://community.st.com/thread/44225-firmware-update?commentID=171427#comment

(just remember that in your case you need to rebuild for 32 MHz).

Best regards,

Antonio

Baptiste Nguyen
Associate
Posted on May 16, 2018 at 08:48

Thank you for your answer.