2023-03-26 12:06 PM
Hello together
I am currently doing the tutorial from ST (STM32WB Getting Started Series: Part 12b, Lab. Receiving data from the phone) to send and receive Information with BLE. I am stuck in the video at 15:00 when the device should show up on the ST BLE Toolbox App. (Some clock settings were not right from the beginning, I adjusted them to the ones in the video)
I already tried:
I found another post that was solved with the adjustment of the settings. Since this doesnt work for me, I am asking a new question now.
My computer runs on Windows 11 and I updated all my IDE's (CubeIDE and MX) and ST-Link tonight. Phone is a Samsung A52.
Now to my question: Did anyone else have these problems or could someone please quickly try my code on their nucleo-WB15CC? Do you straight away see a mistake in my files?
The code (project) is attached as a zip. Thank you all very much in advance!
PS: This is my first question, if I did something wrong or you need more information, please let me know.
EDIT: added the information about the clock settings
Solved! Go to Solution.
2023-03-26 01:09 PM
So first I would check following points:
Is the stack up to date?
Do use string to float conversion or vice versa, if yes comment them temporarily out
Double check in the header if code generator set the correct values
CFG_BLE_ATT_VALUE_ARRAY_SIZE = 1290
CFG_BLE_NUM_GATT_ATTRIBUTES = 30
CFG_BLE_NUM_GATT_SERVICES = 4
if this doesn't work, use the debugger pause after a few second and see if you trigger an error handler, there you can get the most recent error code returning information why there is no advertising
I this doesn't work either, try if advertising works with example projects from cubemx
Then use the IOC file to start new project
2023-03-26 01:09 PM
So first I would check following points:
Is the stack up to date?
Do use string to float conversion or vice versa, if yes comment them temporarily out
Double check in the header if code generator set the correct values
CFG_BLE_ATT_VALUE_ARRAY_SIZE = 1290
CFG_BLE_NUM_GATT_ATTRIBUTES = 30
CFG_BLE_NUM_GATT_SERVICES = 4
if this doesn't work, use the debugger pause after a few second and see if you trigger an error handler, there you can get the most recent error code returning information why there is no advertising
I this doesn't work either, try if advertising works with example projects from cubemx
Then use the IOC file to start new project
2023-03-26 01:10 PM
It was the Stack that needed upgrading. I had to do the full extended stack upgrade (../STM32Cube_FW_WB_V1.16.0\Projects\STM32WB_Copro_Wireless_Binaries\STM32WB1x\stm32wb1x_BLE_Stack_full_extended_fw.bin)
How to do it is explained in the youtube video: STM32WB Getting Started Series: Part 9, STM32WB FUS update
"
Other tips that could help:
if this doesn't work, use the debugger pause after a few second and see if you trigger an error handler, there you can get the most recent error code returning information why there is no advertising
I this doesn't work either, try if advertising works with example projects from cubemx
Then use the IOC file to start new project
"
If this question needs to be closed/deleted, feel free to do so. I would let it, as it might be useful to others.