2025-05-04 1:34 PM
Colleagues,
I need to implement the BLE_CableReplacement project on the b_wb1m_wpan1 device. Since I don’t know the services of this project (the BLE_CableReplacement.ioc file is not included), I tried to adapt the project for the b_wb1m_wpan1 device in IAR.
In IAR General Options, selected ST STM32WB1MMC.
Copied the B-WB1M-WPAN1 folder into the BSP directory of the BLE_CableReplacement project.
Added a reference in the preprocessor options.
Removed stm32wbxx_nucleo.c from the project tree.
Replaced it with b_wb1m_wpan1.c and commented out all instances of //#include "stm32wbxx_nucleo.h".
Opened the standard set of files:
stm32wb55xx_flash_cm4.icf
startup_stm32wb55xx_cm4.s
system_stm32wbxx.c
Replaced their contents via clipboard with the corresponding files from the BLE_HR_p2p_Sensor project.
The system prompted me to copy b_wb1m_wpan1_conf.h into the Core → Inc directory. I did so.
Replaced all instances of DMA2_Channel4 with DMA1_Channel5.
After these changes, the project compiles but gets stuck at the MX_APPE_Process() function and shows no further signs of life.
Could you please advise:
What did I miss?
What would be a better approach?
2025-05-14 4:19 AM
Hello,
CFG_BLE_NUM_GATT_SERVICES is for setting the maximum number of services. There is only one user service in this example. Please try to use ST BLE Toolbox application.
How to build wireless applications with STM32WB MCUs - Application note
Also, these links below could be helpful.
Migrating from STM32WB1x/5x to STM32WB1x/5x MCUs microcontrollers - Application note
STM32WB_Workshop_Presentation.pdf
Best regards,
ST support