Bytes lost when reading using LPUart1 (MB1641 - WB15CC) in STOPx Mode
Dear ST professionals,
Continuing the previous problem reported at https://community.st.com/t5/stm32-mcus-products/mb1641-nucleo-stm32wb15cc-slowness-between-ble-and-uart/td-p/603759, I have problems when use LPUart to wake up from STOP Mode. I tried with STOP0, STOP1 and STOP2 Mode with the LPUart1_IRQHandler() interrupt. Most bytes of the response (RX) are lost. I can only wake up the MCU when I use Sleep Mode.
I based it on the application of ST LPUART WakeUpFromStop_Init. I carried out all the clock steps deemed necessary.
In the LPUart1_IRQHandler() function I call the LPUART_CharReception_CallBack() function. In this callback function, I perform the reading using the LL_LPUART_ReceibeData8(LPUART1) function, assembling the buffer within a while loop.
I think it's very likely that the problem is related to the clock used, but I didn't find the solution in several tests carried out in different ways.
Thank you in advance for your attention, and I can provide further technical details as you deem necessary.
Thank you for your continued attention,
William
