当前位置:网站首页>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.
边栏推荐
猜你喜欢
随机推荐
Data Lake (2): What is Hudi
The use of QListView
pig4cloud服务架构使用
从幻核疑似裁撤看如何保证NFT的安全
MD5详解(校验文件完整性)
第十四章 手动创建 REST 服务(二)
php——三篇夯实根基第一篇
#Summer Challenge#[FFH] OpenHarmony Device Development Foundation (3) Compilation Dependencies
力扣209-长度最小的字符串——滑动窗口法
WPF——自定义日历
FreeRTOS--栈实验
Likou 977-Squaring of ordered arrays - brute force method & double pointer method
php字符串的截取方式
liunx基础命令讲解
第11章 文件
SQL Server2019安装步骤及脱机安装Microsoft机器学习组件下一步不能继续的问题
FreeRTOS实验--删除任务
NVIDIA NeMo Metrics 轻量性能采集系统
喜迎八一 《社会企业开展应聘文职人员培训规范》团体标准出版发行会暨橄榄枝大课堂上线发布会在北京举行
解决导出excel文件名中文乱码的问题









