Skip to main content
ledi001
Associate III
October 17, 2024
Solved

STM32WBA55CG - Problems with BLE_p2pServer_ota Example

  • October 17, 2024
  • 1 reply
  • 1229 views

Hello,

I am using the NUCLEO-WBA55CG board with CubeIDE1.4.0 and the firmware package STM32Cube_FW_WBA_V1.2.0.

When I flash the project BLE_p2pServer_ota, everything seems to be fine at first. But when I scan the BLE devices with the ST BLE Toolbox app, I can't find it.

Then I deleted the first two sectors in the flash with CubeProgrammer and uploaded the binary file BLE_p2pServer_ota.bin. Nothing happened. Then I executed another flash process from CubeIDE and suddenly it worked.

In this example, do I have to delete certain sectors in the flash before I upload it?

Best answer by STTwo-32

Hello @ledi001 

To make the code work you have to: go to CubeMX and generate the project "BLE_ApplicationInstallManager" using your CubeIDE, compile and download it. After that, do the same using the "BLE_p2pServer_ota" project.

It will work perfectly.

For the issues, I've personally been able to use the projects on the STM32CubeIDE V1.16.1, STM32CubeMX V6.12.1 and STM32CubeWBA V1.4.1. Just generate them using STM32CubeMX. If the issue persists, you can keep using the V1.2.0. it should be the same Methode that I've explained before.

Best Regards.

STTwo-32 

1 reply

STTwo-32
Technical Moderator
October 17, 2024

Hello @ledi001 

As said on the Readme file:

In order to make the program work, you must do the following:

- Verify that the Maximum supported ATT_MTU size configured in app_conf.h file is 251 bytes

- Open your preferred toolchain

- Rebuild all files and load your image into target memory:

BLE_ApplicationInstallManager binary is downloaded at the memory address 0x08000000

BLE_p2pServer_ota binary is downloaded at the memory address 0x08006000

- Run the example.

Then, you must always compile and run BLE_ApplicationInstallManager project before the BLE_p2pServer_ota project.

Please use the STM32CubeWBA V1.4.1 (the last version).

Best Regards.

STTwo-32

ledi001
ledi001Author
Associate III
October 18, 2024

Hello @STTwo-32 

Thanks for your feedback!

Please can you explain what you mean with "Then, you must always compile and run BLE_ApplicationInstallManager project before the BLE_p2pServer_ota project" after running the example?

 

You wrote: Please use the STM32CubeWBA V1.4.1 (the last version). I tried, but i know, that there are still bugs with STM32CubeWBA V1.4.1.

I startet the project directly from the regarding project file in the FW-Package:

2024-10-18_07h13_19.png

 

But i got these error messages:

2024-10-18_07h14_07.png

 

 

STTwo-32
STTwo-32Best answer
Technical Moderator
October 18, 2024

Hello @ledi001 

To make the code work you have to: go to CubeMX and generate the project "BLE_ApplicationInstallManager" using your CubeIDE, compile and download it. After that, do the same using the "BLE_p2pServer_ota" project.

It will work perfectly.

For the issues, I've personally been able to use the projects on the STM32CubeIDE V1.16.1, STM32CubeMX V6.12.1 and STM32CubeWBA V1.4.1. Just generate them using STM32CubeMX. If the issue persists, you can keep using the V1.2.0. it should be the same Methode that I've explained before.

Best Regards.

STTwo-32