2023-04-14 04:33 AM - edited 2023-11-20 08:11 AM
I am trying to build my own BLE application for STM32WB5MMGHx using cubeMX with BLE custom Template , I followed all the needed steps to configure BLE APP the advertising data, services and chars. the projects build but nothing work.
I debugged my projects and I found that I didn't get any interruption on IPCC (RX/TX handlers) after initializing the BLE stack.
I tried also to use the same steps with Custom P2P server and it doesn't work for me and I have the same symptoms.
Is there any specific configuration and setting to make it working.
Solved! Go to Solution.
2023-04-24 05:18 AM
Hello,
Indeed, there is an extra dot in CubeIDE linker file: *(.MB_MEM2) ; instead of *(MB_MEM2) ;
Due to this, the buffers that need to be in SRAM2 are not placed there, so your application doesn't work. It will be corrected in the next release.
Best Regards
2023-04-14 06:59 AM
Hello @mtaallah and welcome to the Community :) ;
I advise you to start with an available BLE_p2pServer example in the STM32CubeWB package.
So, when you configurated your project, try to get inspired from the instructions in the readme file and the .ioc example file.
Also, this video can help you to configure BLE server profile App based on Custom Template using STM32CubeIDE.
I hope this help you!
Kaouthar
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.
2023-04-14 08:17 AM
Hi,
I already tested the BLE_p2pServer example for STM32WB5MM-DK and it works for me with my own hardware, but now i am trying to work on my own application from scratch, because the example integrates many components and i would like to keep my application base on a valid ioc file to make the integration of new components easier.
please find enclosed myproject.
2023-04-17 01:40 AM
Hi @mtaallah ,
Please make sure that the STM32_WPAN parameters configuration and BLE Advertising are well configurated in your .ioc file.
For that, I recommend you when configurated the STM32_WPAN to take a look to this video and get inspired from the steps.
Thank you.
Kaouthar.
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.
2023-04-20 03:05 AM
Hi,
I followed all steps in the video but it doesn't work.
After investigating I found that there's a problem in the linker file ans startup file generated within the project. I used the linker file and startup file from the out of box BLE_p2pserver with my application and it works for me now.
STM32cube IDE : Version: 1.12.0 Build: 14980_20230301_1550 (UTC)
STM32CubeWB Firmware Package V1.16.0 / 08-February-2023
I propose that you check and fix this issue that the we can create our project using cubeIDE and run it without issues.
Thanks.
2023-04-24 05:18 AM
Hello,
Indeed, there is an extra dot in CubeIDE linker file: *(.MB_MEM2) ; instead of *(MB_MEM2) ;
Due to this, the buffers that need to be in SRAM2 are not placed there, so your application doesn't work. It will be corrected in the next release.
Best Regards