2022-05-03 01:18 AM
I am trying to follow the "STM32WB Getting started Series: Part 12b lab..."(https://www.youtube.com/watch?v=CKYWy7LKL68&list=PLnMKNibPkDnG9JRe2fbOOpVpWY7E4WbJ-&index=16) on youtube.
In the video he is using a WB55, but I am trying to implement it on a WB15 (both Nucleo).
But, it does not work on the WB15 board. When I try it on the WB55 board, it works fine.
I have been combing through the video trying to see if I have a setting somewhere that is different, but nothing jumps out.
If I open up the P2P example project from CubeMX, it works just fine, so the BLE stack is working fine on the WB15 board.
I am hoping there is just some setting I am missing, because the project will eventually have to run on a costum board with a WB10 :\
Regards
Rolf
Solved! Go to Solution.
2022-05-19 12:42 AM
So, I think I found out what was wrong.
In the BLE configuration tab the following 4 parameters seemed to be too large for the WB15 (and WB10)
CFG_BLE_NUM_GATT_SERVICES 8
CFG_BLE_NUM_GATT_ATTRIBUTES 68
CFG_BLE_MAX_ATT_MTU 156
CFG_BLE_ATT_VALUE_ARRAY_SIZE 1344
If I set them to the below values it seems to work just fine. I have no reason for setting them to these exact values, it was just less than the original values :|
It says in the description area that the size depends and the GATT database size in CPU2, but I have not been able to find the size definition of this database anywhere...
/Rolf
2022-05-11 08:57 AM
Hello,
You can compare your ioc file when you have to try to follow this learning and adapt it for WB15 with the reference ioc available in STM32CubeWB package:
Best Regards
2022-05-19 12:42 AM
So, I think I found out what was wrong.
In the BLE configuration tab the following 4 parameters seemed to be too large for the WB15 (and WB10)
CFG_BLE_NUM_GATT_SERVICES 8
CFG_BLE_NUM_GATT_ATTRIBUTES 68
CFG_BLE_MAX_ATT_MTU 156
CFG_BLE_ATT_VALUE_ARRAY_SIZE 1344
If I set them to the below values it seems to work just fine. I have no reason for setting them to these exact values, it was just less than the original values :|
It says in the description area that the size depends and the GATT database size in CPU2, but I have not been able to find the size definition of this database anywhere...
/Rolf
2022-05-24 08:27 AM
Hello,
You can find some information about this in application note AN5289. A wiki page on this topic is under redaction.
Best Regards
2023-05-22 07:50 AM
First off, I find the video series, in particular 12b, very helpful. I was (still am) struggling to make a simple BLE program and am making progress now.
I can confirm that even with the WB55RG it does not work directly per the video. So far I have tried:
Running the latest firmware:
FUS Version: v1.2.0.0
STACK Version: v1.16.0.4
And as others have said, the p2pServer and Heart Rate demo programs work fine.
It would be great to get some clarity as to exactly why the video instructions do not work, and what needs to be changed and why. At this point it feels like trial and error. So close, yet so far as the saying goes.
2023-06-02 09:34 AM
Hello,
Can you if you are facing this issue? If not, can you explain what doesn't work as expected?
Best Regards