Skip to main content
AJens.1
Associate
May 12, 2020
Question

STM32WB55 - P-NUCLEO-WB55 - Advertising works but I can't connect when building application using code generated by CubeMX

  • May 12, 2020
  • 1 reply
  • 1430 views

I've been trying to get this to work for weeks now.

The board is functioning fine when I try the examples e.g. BLE-HID, but when I build a new application based on the code generated from CubeMX I can't connect to the board over BLE.

The advertising is semi-working, as I can see the board, but I can't see the services nor do a pairing with the device.

I have added the IPCC and RTC interrupt handlers, but the problem seems to be with initialization.

The HW_IPCC_Rx_Handler is being tripped constantly. When compairing to the functionality of the BLE-HID example, once the initial setup is done, this handler is only tripped once an acutal connection is attempted.

To me this indicates that these events are not being handled correctly, but I'm not able to determine what I am missing.

Any help would be greatly appreciated.

This topic has been closed for replies.

1 reply

AJens.1
AJens.1Author
Associate
May 12, 2020

I fixed the constant interrupts by disabling

#define RADIO_ACTIVITY_EVENT 0 /* 1 for OOB Demo */

in app_conf.h

But I'm still not able to pair or even connect to the device.

XPonc.1
Associate II
August 6, 2020

Hey @AJens.1​ ,

Any update on this? I have the same problem: advertising works, but I can't connect.

Regards

AJens.1
AJens.1Author
Associate
August 6, 2020

Yes!

It turns out the key to this problem was making sure that the clock was setup as so:

RTC/LCD source Mus = LSE

System Clock Mux = HSE_SYS

RFWKP Clock Mux = LSE

Hope it helps.

I found the solution by following the WB55 hands-on workshop:

https://www.st.com/content/st_com/en/about/events/events.html/stm32wb-hands-on-workshop-2018.html