cancel
Showing results for 
Search instead for 
Did you mean: 

SPI and BlueNRG sleep mode

rdscliff
Associate II
Posted on July 23, 2016 at 04:31

After SPI bus activity stops, how long until BlueNRG goes into sleep mode?

Document

UM1755 BlueNRG Bluetooth®LE stack application command interface (ACI) implies the time is 2 mS.  This is important because there is an errata saying that BlueNRG will lockup if a new SPI command is started while the BlueNRG is trying to go to sleep.

1 REPLY 1
Nick Ushakov
Associate II
Posted on December 13, 2016 at 11:01

Use the function Hal_Write_Serial of an example

http://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/stsw-bluenrg-dk.html

in file SDK_EVAL_Spi_Driver.c, this algorithm fixes lockup, if a new SPI command is started while the BlueNRG is trying to go to sleep.