cancel
Showing results for 
Search instead for 
Did you mean: 

B-WB1M-WPAN1

pm_interrupt_vect
Associate III

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.

Steps I took:

  1. In IAR General Options, selected ST STM32WB1MMC.

  2. Copied the B-WB1M-WPAN1 folder into the BSP directory of the BLE_CableReplacement project.

  3. Added a reference in the preprocessor options.

  4. Removed stm32wbxx_nucleo.c from the project tree.

  5. Replaced it with b_wb1m_wpan1.c and commented out all instances of //#include "stm32wbxx_nucleo.h".

  6. 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.

  7. The system prompted me to copy b_wb1m_wpan1_conf.h into the Core → Inc directory. I did so.

  8. 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?

10 REPLIES 10
FilipKremen
ST Employee

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