OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 2865|回复: 0

Free rtos 跑多任务出现断言问题

[复制链接]

21

主题

93

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
451
金钱
451
注册时间
2018-10-19
在线时间
148 小时
发表于 2019-10-28 19:33:49 | 显示全部楼层 |阅读模式
1金钱
在free rtos 在跑任务的时候会出现断言错误.
在tasks.c的4049行

BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
{
TCB_t * const pxTCB = pxMutexHolder;
BaseType_t xReturn = pdFALSE;
  if( pxMutexHolder != NULL )
  {
   /* A task can only have an inherited priority if it holds the mutex.
   If the mutex is held by a task then it cannot be given from an
   interrupt, and if a mutex is given by the holding task then it must
   be the running state task. */
   configASSERT( pxTCB == pxCurrentTCB );// 出现错误!!!
   configASSERT( pxTCB->uxMutexesHeld );
   ( pxTCB->uxMutexesHeld )--;

.....................省略

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-1 02:17

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表