cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L462 configured to wake up from stop mode 2, using RXNE interrupt, not able to receive asynchronous responses sent from the modem.

KK.4
Associate II

STM32L462 is configured to wake up from stop 2 mode on RXNE interrupt. Since the response length is unknown and dynamic, have configured interrupt on every character till the end of character is received.

MCU is successfully waking up on UART reception but not able to get the full string in the RX buffer. Works well for single character but not when a group of characters are sent (i.e. 10 characters). Using a baud rate of 9600. Is there a way to wake up and start receiving data at the same time?

If not, how do I handle asynchronous event responses sent from the modem when the device is sleeping? Any help on that would be appreciable.

1 REPLY 1
Andrew Neil
Evangelist III

"Works well for single character but not when a group of characters are sent"

What problem(s) do you see with groups of characters?

Does your code try to go back to STOP after each character?