Skip to main content
Dhaval Malav
Associate II
January 31, 2018
Question

Bluenrg-MS returns 0x00 in SPI header after sending command

  • January 31, 2018
  • 1 reply
  • 1548 views
Posted on January 31, 2018 at 22:05

I have STM32L4 connected to Bluenrg-MS. I am sending data over to the Bluenrg-MS which sends data to peer device. However, after some successful transfers (not consistent: sometimes after 50 notifies and sometimes after 3000 notifies) Bluenrg-MS starts returning 0x00 as its header after STM32L4 sends any command. 

in STM32L4 we are also implementing CS line de-assertion and assertion after each transaction and hence we believe that should wake up the Bluenrg-MS.

Not sure what is going wrong. Any help or direction will be much appreciated. 

#bluenrg-ms #spi #stm32l4+
This topic has been closed for replies.

1 reply

Antonio Vilei
ST Employee
February 1, 2018
Posted on February 01, 2018 at 17:05

Dear Dhaval Malav,

what firmware version of the BlueNRG-MS chip are you using? Please make sure you are using v7.2c (the latest by the time of this writing).

Are you using the SPBTLE-RF module or is it a custom board?

Also, what software are you running on your STM32L4? As a reference you can use the

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube-ble1.html

package.

Best regards,

Antonio

Dhaval Malav
Associate II
February 1, 2018
Posted on February 01, 2018 at 17:33

Thank you Antonio for your response.

Firmware of BlueNRG-MS - using getBlueNRGVersion I a getting fwVersion to be 0x710 which I believe prior to 7.1a

Custom Board - We are using custom board.

Software on STM32L4 - We developed our own FW however, most of the BLE code is based on X-Cube-BLE and other example codes.

How can I update FW to v7.2c?

Having said so, now knowing the fw version, does the behavior I am seeing makes any sense to you? Where BlueNRG-MS goes to sleep (I suppose from SPI Header) and never come backs.

Thank you,

DM

Winfred LU
ST Employee
February 2, 2018
Posted on February 02, 2018 at 07:55

Hi DM,

FW v7.2c is available : 

http://www.st.com/content/st_com/en/products/embedded-software/wireless-connectivity-software/stsw-bnrg-v72c.html

Firmware update process can be started in 2 ways:

1. (SW) through an ACI command: aci_updater_start

2. (HW) pull the IRQ pin high during power-up or reset

Please reference

http://www.st.com/resource/en/application_note/dm00116392.pdf

for detail.

Best Regards,

Winfred