当前位置:网站首页>FreeRTOS--stack experiment
FreeRTOS--stack experiment
2022-08-02 12:31:00 【Mountain,】
In FreeRTOS, when a task is created, the pvPortMalloc
function is called to allocate the task TCB structure and stack space similar to malloc
.
The complete space requested by the task on the heap is as follows:
The header contains some information in the latter part, such as length information.
Task 1 has applied for 100 bytes of stack space, but if the internal use of task 1's stack space exceeds the 100-byte space it applied for, then the information in front of the stack space of task 1, such as header data orThe data in the TCB structure will be destroyed, and the program will crash.
So when creating a task, make sure that the stack space allocated to the task is large enough.
边栏推荐
猜你喜欢
随机推荐
ABAP-OOAVL模板程序
用位运算为你的程序加速
How to set up wireless PPI communication between Weiluntong touch screen and S7-200smart?
Drools(8): WorkBench uses
js九宫格样式抽奖插件
手撸架构,Mysql 面试126问
1.3快速生成树协议RSTP
Chapter 11 Documents
SQL中字符串拼接
Likou 977-Squaring of ordered arrays - brute force method & double pointer method
PHP+MYSQL【学生信息管理系统】(极简版)
如何更好评估信用贷风险?看这场评分卡模型直播就可以了
第11章 文件
以Boost为例的type3电压环补偿器实例
DTG-SSOD: The latest semi-supervised detection framework, Dense Teacher (with paper download)
消除气泡解救蘑菇h5小游戏源码
FreeRTOS实验--删除任务
中原银行实时风控体系建设实践
Drools(8):WorkBench使用
看我如何用多线程,帮助运营小姐姐解决数据校对系统变慢!