Hi Igor,
thank you very much for your reply.
The manual says that I should lose a character, but experimentally I'm noticing a different behavior using the 4.1.15 kernel and the provided yocto image.
I'm testing such behavior setting up the serial port (@155200 bps) and issuing a "cat /dev/ttymxc1" command, since the external µC module is sending out ascii chars (i'm testing it sending periodically the "1234567890abcdefghijklmnopqrstuvwxyz" string).
If the iMX EVK is in RUN mode everything works as expected, the message is correctly shown in the console.
If i put the iMX in STOP mode (issuing the "echo mem > /sys/power/state" command) it wakes up correctly as soon as the µC transmits the message, but the string printed out by the cat command is something like "tuvwxyz", so i'm losing much more than a single char.
It looks like some data is lost before the system is woken up. Could it be a driver or configuration related issue?
How can I further investigate the issue? Do you have any debugging hint?
Best Regards,
Giorgio