STM32WB BLE application using the LSI2 as source of RF WAKEUP
Hello,
I'm testing a custom board implementing a BLE Server. The binary for CPU2 is the stm32wb5x_BLE_Stack_fw 1.3.0. All the radio system seem work well, tested with STM32CubeMonitor-RF and a nucleo dongle (Packet Error Test below 1%). The advertising phase work well too. But when I try to connect a BLE Client, it connects and disconnects immediately after. The reason code of HCI Event is 0x3E (Connection failed to be established).
After some investigations, tring to load my firmware on the STM32WB Nucleo Board, I found the problem. I use LSI2 as source clock of RF WAKEUP, this seem not work also on the nucleo board, but switching to LSE (on Cube MX clock configuration), all works well. On my board I can't use the LSE, in reference manual I saw that LSI2 was suitable to source the RF WAKEUP.
I already trim the LSI2 with factory value stored at 0x1FFF7548, but the frequency is 30kHz not 32Khz. Could be a problem?
It doesn't work also with HSE/1024 as source of RF WAKEUP CLOCK
Why I can't use the LSI2 or HSE/1024? Is there any workaround?
Thank you in advance.