cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB5MMG connection couldn't finish

XPera.2
Associate

I was testing the STM32WB5MMG on the new U585 IOTA discovery kit and I'm facing some issues.

I generated a project using STM32CubeIde with the MXEditor. After enabling all the default peripherals and changing the example config of BLE, some points are noted:

  • The RTC Backup domain registers are protected, you have to call HAL_PWR_EnableBkUpAccess(); prior to executing HAL_RTC_Init, otherwise it will fail with a timeout.
  • IPCC interrupts are not enabled automatically when enabling the RF + STM32_WPAN, so you will manually have to go to the NVIC controller and enable them.

Now after fixing this, atleast I could get the code running and the advertisers showing in.

In whireshark I can see that:

  • STM32WB5MMG is sending ADV_IND
  • Mobile phone is sending SCAN_REQ
  • STM32WB5MMG is responding with SCAN_RES
  • Mobile phone sends CONNECT_IND
  • The STM32WB5MMG is not establishing the connection.

Is this a know behaviour? Am I missing something? Like and API call to process the connection request? I'm using a custom template, but the HEARTRATE SENSOR example exhibits the same behaviour.

Kind regards

1 REPLY 1
Remy ISSALYS
ST Employee

Hello,

Which smartphone application do you use ?

Can you try with BLE_HeartRate project available is the last release:

https://www.st.com/en/embedded-software/stm32cubewb.html

Best Regards