STM32WB15CC Custom BLE Project Not Discoverable - Missing Configuration?

I am new to STM32WB15CC and am using the STM32WB15CC NUCLEO board. I successfully ran the BLE example p2pserver on my board, where the device is discoverable, and I can control the LED via the STM BLE application. However, when I created my own project and enabled STM32WPAN BLE, the device is not discoverable. In my custom project, I used the STM32CubeMX tool, which generated various BLE-related files, including app_ble.c. In that file, the following code for discovery was generated:
BleApplicationContext.BleApplicationContext_legacy.advtServUUID[0] = NULL;
BleApplicationContext.BleApplicationContext_legacy.advtServUUIDlen = 0;
BleApplicationContext.BleApplicationContext_legacy.advtServUUID[0] = NULL;
BleApplicationContext.BleApplicationContext_legacy.advtServUUIDlen = 0;
I haven’t made many changes to the generated code apart from initializing BLE. However, I am unsure if additional configurations are required for the device to be discovered by scanning apps (I’ve tried the STM BLE app as well as other BLE scanning tools, and none detect the device). There are no error messages or logs during compilation or runtime. Can you help identify what might be missing or misconfigured in my custom project compared to the working example? Specifically, what could prevent my custom BLE project from being discoverable?
1 Reply
Enthernet Code
Enthernet Code2mo ago
@Sterling For your custom STM32WB15CC BLE project, the issue of the device not being discoverable usually stem from the missing advertisement service UUIDs or incorrect configurations in the BLE stack.
Want results from more Discord servers?
Add your server