Skip to main content
XPera.2
Visitor II
February 26, 2022
Question

STM32WB5MMG connection couldn't finish

  • February 26, 2022
  • 1 reply
  • 543 views

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

This topic has been closed for replies.

1 reply

Remy ISSALYS
ST Technical Moderator
March 7, 2022

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