8 years, 8 months ago.  This question has been closed. Reason: Duplicate question

Does the BlueNRG shield work with Nucleo-L053R8? (Problems with btle_init)

Hi,

I am trying to bring up the basic heart rate example using a BlueNRG shield on a Nucleo-L053. From the logs it looks like the code is always stuck at btle_init>>. From the forums, I noticed that led1 may have a conflict with SPI so I removed that code. But there is still no improvement.

Tracing this further, I see that the problem happens just around the following code in btle.cpp: /* Delay needed only to be able to acces the JTAG interface after reset if it will be disabled later. */ Clock_Wait(500);

/* Initialize the BlueNRG SPI driver */ BNRG_SPI_Init();

Do I need to change any of the SPI init logic or GPIO configuration to get the BlueNRG to work with the Nucleo-L053? Or is it sufficient to just recompile the image for my platform via MBED?

Also, this is after the hardware trick suggested in: https://developer.mbed.org/questions/5694/stuck-on-btle_init/

Note: I did not change the BlueNRG board - I connected pins 11 and 31.

Any help is most appreciated!

Thank you!

Joe

Question relating to:

Information on how to use the STM32 Nucleo board with mbed

Also, I did follow the shorting of pins 11 and 31 as suggested in https://developer.mbed.org/questions/5694/stuck-on-btle_init/.

But init is still stuck!

posted by J K 20 Aug 2015