Skip to content

Commit

Permalink
add No more envelope error doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Dec 7, 2018
1 parent f4c7170 commit 6d53580
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Q_A/q_a.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,11 @@ GPS在空旷的环境中可以有比较理想的效果,在有遮蔽的地方会
原因请查看文档中os部分的`OS_GetHeapUsageStatus`函数说明,分配小空间后调用这个函数的返回值可能不会有变化


## 死机: 在`SXR 01`调试等级有打印出 `No more envelope`

原因是使用了`OS_SendEvent`函数来发送事件,但是没有及时处理事件导致满队。

需要使用`OS_WaitEvent`来等待事件并处理,比如所有例程中都以一个主任务用来处理底层发来事件,
同理,如果不去接收处理来自底层的事件,经过很长时间队列满后也会溢出出现死机

解决方法:检查哪些地方调用了这个函数,并且检查哪里有没有及时处理这些发送的事件,保证事件在队列满之前及时处理掉就可以了

0 comments on commit 6d53580

Please sign in to comment.