cancel
Showing results for 
Search instead for 
Did you mean: 

hci_reset function returns BLE_STATUS_TIMEOUT with BLUENRG-M2SA in network co-processor mode

RMoc.1
Associate II

I have BLUENRG-M2SA BLE module that I am trying to interface with STM32l496 IC.

I generated the code through STM32CubeMX using X-CUBE-BLE2 v3.3.0 selecting HCL_TL Basic and HCL_TL_INTERFACE UserBoard.

The code gets compiled and when I try to flash and debug, hci_reset function returns BLE_STATUS_TIMEOUT error.

Following are connections

STM32     BLUENRGM2SA
SPI_MISO  DIO2
SPI_MOSI  DIO3
SPI_CLK   DIO0
GPIO_OUT  DIO11 // CS
GPIO_OUT  RESET

I read DT0137 Design tip manual to make the following changes when using BLUENRG-M2SA development board:

HS_SPEED_XTAL=HS_SPEED_XTAL_32MHZ

LS_SOURCE=LS_SOURCE_EXTERNAL_32KHZ

SMPS_INDUCTOR=SMPS_INDUCTOR_10uH

The macros seems to be renamed as following:

HS_SPEED_XTAL=HS_CRYSTAL_32MHZ

LS_SOURCE=LS_SOURCE_32KHZ

SMPS_INDUCTOR=SMSP_10uH

Above changes were made but still it throws the same error.

Do we need to make any additional changes to use BLUENRG-M2SA in a network co-processor mode? I directly opened the packing, soldered on custom board and using it.

What could be the reason for this issue and how to resolve this issue?

This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Laurent LOUAZON
ST Employee

Hello,

Please have a look at below thread.

This could give you useful hint.

https://community.st.com/s/question/0D53W00001VYgBSSA1/port-xcubeble2-code-to-bluenrg2m2sa

Regards

Laurent

RMoc.1
Associate II

Thanks @Laurent LOUAZON​,

I found out that the chip doesn't have default firmware to act as a network co processor and we need to flash the DTM_SPI_M2SA(or similar) program present in BlueNRG DK folder with RF Flasher Utility. These steps weren't present collectively anywhere and had to spend some time searching them.