2025-12-23 3:02 AM
I am trying to use the ble_p2pServer example on my stm32wb05kz, but it is not advertising and not detectable on the ST toolbox application. These are the debug statements I am getting via UART:
*** UART Test - System Starting ***
BLE Stack initialized successfully
Total Buffer Size: 8498 bytes
Num Radio Tasks: 1
Success: aci_hal_set_tx_power_level command
Success: aci_gatt_srv_profile_ini t command
Success: aci_gap_init command
Static Random Bluetooth Address: de:ce :41:ed:ca:9a
Success: Gap_profile_set_dev_name - Device Name
Success: Gap_prof ile_set_appearance - Appearance
Success: aci_gap_set_io_capability command
Adver tising data filled with BD address
Success: aci_gap_set_security_requirements c ommand
Success: aci_gap_configure_filter_accept_and_resolving_list command
==>> End BLE_Init function
Services and Characteristics creation
Success: aci_gatt_sr v_add_service command: p2p_Server
End of Services and Characteristics creation
Success: aci_hal_set_radio_activity_mask command
=== Starting BLE Advertising ===
Device Name: p2pS_XX
BT Address: de:ce:41:ed:ca:9 a
Timeout: 300000 ms
Starting BLE Advertising...
Advertising Interval: 128 - 160 (units of 0.625ms)
==>> Success: aci_gap_set_advertising_configuration
==>> Success: aci_gap_set_adv ertising_data
==>> Testing radio hardware directly...
==>> About to enable advertising...
==>> Radio IRQ count before: 0
==>> Timer IRQ count before: 0
==>> Calling aci_gap_set_advertising_enable...
==>> Re
it always stops right before reaching the aci_gap_set_advertising_enable. How do i fix it so that I am able to detect it in the ST Toolbox aaplication?