imx6sll sleep mode,uart wakeup ,loss data

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6sll sleep mode,uart wakeup ,loss data

Jump to solution
1,110 Views
ilyyxfe
Contributor I

to whom it may concern

hello!

i am using the imx6sllevk evaluation bsp for development

i set the ttymxc0 as wake up source

when the system into the ”mem ” sleep mode,

i use 40bytes data to wakeup the system by ttymxc0.

the system wake up successfully, but it loss the begining of  data(almost  30bytes)

it only receiced the last 10 bytes data。

is it normal because of the cpu characteristic?

or i can make some change in souce so that i can  receive them all....

pls give me some advice

thank you

Labels (1)
0 Kudos
1 Solution
890 Views
igorpadykov
NXP Employee
NXP Employee

Hi zhang

I believe one can improve it using uart flow control.

Best regards
igor

View solution in original post

0 Kudos
3 Replies
890 Views
igorpadykov
NXP Employee
NXP Employee

Hi zhang

according to sect.45.8.2 UART Operation in System Stop Mode i.MX6SLL Reference Manual:

"When an asynchronous WAKE (awake) interrupt exits the ARM platform from STOP
mode, make sure that a dummy character is sent first because the first character may not
be received correctly."

https://www.nxp.com/docs/en/reference-manual/IMX6SLLRM.pdf 


Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
890 Views
ilyyxfe
Contributor I

Dear Igorpadykov:

thank you for replying very much

about your advice,I have seen the sect. before.

but it just expressed "it will not the first character(the first bit or byte?)".

in my case, my ttymxc0 works in 115200 , it loss too many data(almost  30bytes).

our system need to be awaked by the uart, and will check the data received.

is there anything I can do(modify the kernel soure or a better solution) to improve the situation?

looking forward your advice.

best regards

zhang

0 Kudos
891 Views
igorpadykov
NXP Employee
NXP Employee

Hi zhang

I believe one can improve it using uart flow control.

Best regards
igor

0 Kudos