Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finsh初始化顺序的Bug #347

Closed
armink opened this issue Oct 7, 2014 · 1 comment
Closed

Finsh初始化顺序的Bug #347

armink opened this issue Oct 7, 2014 · 1 comment

Comments

@armink
Copy link
Member

armink commented Oct 7, 2014

当RTT开启finsh后,如果在系统刚刚启动,还没到finsh_set_device()过程中在控制台中输入按键,这时系统会断言停在RT_ASSERT(rx_fifo != RT_NULL)位置。

bernard已回复:这个时候finsh还没去打开串口设备,所以有问题

@BernardXiong
Copy link
Member

这个严格来说不是finsh/serial驱动模型的bug,而是底层UART驱动错误的提前打开了接收中断。需要确保底层UART驱动只有在control中是RT_DEVICE_CTRL_SET_INT命令时才去打开接收中断。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants