2022-08-24 05:12 AM
Hi,
I am using the Nucleo WB55 board that has a STM32WB55RGV6 MCU to develop an application.
I see instabilities in bluetooth by default when I am using the LSE clock as RfWkUpClock of the BLE that are leading to the BLE core crashing.
Those instabilities disappear when I disable the use of the LSE clock and replace it by the HSE clock. That is though not a long term solution for me as the difference of power consumption is quite consequent.
I did probe the LSE clock on the LSCO pin of the MCU and got the attached measurement.
Why is the LSE clock so unstable?
Is there any way to make the BLE more robust while still using the LSE clock?
Best regards,
Antoine Poussart
2022-08-26 01:10 AM
Hello,
According to the errata sheet ES0394 some GPIO can disturbs the LSE clock, these GPIO are PC13 and PH3:
Which STM32CubeWB firmware version are you using ?
Best Regards
2022-08-26 01:35 AM
Dear,
Thank you for your answer.
That was a good insight but unfortunately both PC13 and PH3 are stable values that do not toggle.
I am currently using STM32CubeWB 1.13.0 but I saw the same issue with 1.13.2, 1.13.3 and 1.14.0.
Best regards,
Antoine Poussart
2022-08-26 01:44 AM
Hello,
I recommend to you to use the latest firmware version v1.14.1. Are you using the SMPS ? Can you check the value of the following define in app_conf.h ? And how do you power the board ?
#if defined(STM32WB5Mxx)
#define CFG_BLE_LSE_SOURCE (SHCI_C2_BLE_INIT_CFG_BLE_LSE_NOCALIB | SHCI_C2_BLE_INIT_CFG_BLE_LSE_MOD5MM_DEV)
#else
#define CFG_BLE_LSE_SOURCE (SHCI_C2_BLE_INIT_CFG_BLE_LSE_NOCALIB | SHCI_C2_BLE_INIT_CFG_BLE_LSE_OTHER_DEV)
#endif
Best Regards