imx6sll sleep mode,uart wakeup ,loss data

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx6sll sleep mode,uart wakeup ,loss data

跳至解决方案
2,213 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,993 次查看
igorpadykov
NXP Employee
NXP Employee

Hi zhang

I believe one can improve it using uart flow control.

Best regards
igor

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,993 次查看
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 项奖励
回复
1,993 次查看
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 项奖励
回复
1,994 次查看
igorpadykov
NXP Employee
NXP Employee

Hi zhang

I believe one can improve it using uart flow control.

Best regards
igor

0 项奖励
回复