cancel
Showing results for 
Search instead for 
Did you mean: 

Flash BLE_p2pserver_ota example to stm32wba52cg

suvendusahux
Associate II

I tried loading the p2pserver_ota example binary at address 0x08004000 and before that I flashed the application manager at address 0x08000000.When I reset the controller I get these logs at usart1 and my led2 connected to pb11 starts blinking-

==>> Start Ble_Hci_Gap_Gatt_Init function
Success: aci_hal_write_config_data command - CONFIG_DATA_PUBADDR_OFFSET
Public Bluetooth Address: 00:80:e1:2a:b0:9a
Success: aci_hal_write_config_data command - CONFIG_DATA_IR_OFFSET
Success: aci_hal_write_config_data command - CONFIG_DATA_ER_OFFSET
Success: aci_hal_set_tx_power_level command
Success: aci_gatt_init command
Success: aci_gap_init command
Success: aci_gatt_update_char_value - Device Name
Success: aci_gatt_update_char_value - Appearance
Success: hci_le_set_default_phy command
Success: aci_gap_set_io_capability command
Success: aci_gap_set_authentication_requirement command
Success: aci_gap_configure_whitelist command
==>> End Ble_Hci_Gap_Gatt_Init function

Services and Characteristics creation
Success: aci_gatt_add_service command: P2P_Server
Success: aci_gatt_add_char command : LED_C
Success: aci_gatt_add_char command : SWITCH_C
Success: aci_gatt_add_service command: OTA
Success: aci_gatt_add_char command : BASE_ADR
Success: aci_gatt_add_char command : CONF
Success: aci_gatt_add_char command : RAW_DATA
End of Services and Characteristics creation

Success: aci_hal_set_radio_activity_mask command
==>> aci_gap_set_discoverable - Success
==>> Success: Start Advertising

 

 

When I press the button1 it shows-

Button 1 pressed
-- P2P APPLICATION SERVER : CAN'T INFORM CLIENT - NOTIFICATION DISABLED

How can I make my mcu work in BLE mode for OTA ,Is there anything I am missing.

4 REPLIES 4
STTwo-32
ST Employee

Hello @suvendusahux 

The BLE_p2pServer_ota available now is made to work on the Nucleo-WBA55CG. If you are looking for the example made for the Nucleo-WBA52CG, it should be available on the STM32CubeWBA V1.1.0.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

I am using STM32CubeWBA V1.1.0. with cube ide 1.14.1.

when ever I am using the .bin file from the package its working fine but when ever I am generating my own .bin file using the provided IOC file with the help of cube ide 1.14.1 its not woking.

Do I have to use cube ide 1.12.0 for this STM32CubeWBA V1.1.0. package?

suvendusahux
Associate II

I have changed the tool chain to GNU TOOLS FOR STM32 (10.3-2021.10) . now I am getting these errors-

I have attached the error logs.

 

_Joe_
ST Employee

hi,
In the trace you give, we don't see the connection with a peer device, which would explain why you can't inform the non-existent client.
Do you confirm that you are making a connection before pressing the button?