2024-10-16 11:11 PM
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?
Solved! Go to Solution.
2024-10-18 01:24 AM
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
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.
2024-10-17 08:48 AM - edited 2024-10-17 08:59 AM
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
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.
2024-10-17 10:27 PM
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:
But i got these error messages:
2024-10-18 01:24 AM
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
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.
2024-10-19 03:56 AM
Hello @STTwo-32
Now I have done the steps (with CubeIDE 1.4.0 and FW-Package 1.2.0) as you suggested.
1. i compiled the "BLE_ApplicationInstallManager"
2. i flashed the "BLE_ApplicationInstallManager" to the target
3. i compiled the "BLE_p2pServer_ota"
4. i flashed the "BLE_p2pServer_ota" to the target
5. i restarted the NUCLEO Board -> all looks fine!
Then I opened the ST BLE Toolbox on my Android phone and established a connection to the board. So far everything is OK. Then I started the OTA update with the file BLE_HeartRate_ota.bin.
The upload starts and I get the message upload complete. Unfortunately nothing has changed. BLE_p2pServer_ota is still active.
2024-10-19 04:09 AM - edited 2024-10-19 04:11 AM
Hello @ledi001
I'm aware about this issue that you have. I suggest you to close this post and the post looking for a BLE_OTA example since they are answered right now. For this new issue, i'm Following this internaly and i will get back to you soon with an Answer on the concerned post: (this one https://community.st.com/t5/stm32-mcus-wireless/stm32wba55cg-problems-with-ble-heartrate-ota-upgrade/td-p/732279).
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.