mcza30 发表于 2016-11-6 18:16:37

求助:Undefined symbol xQueueCreateMutex

按照教程步骤,建了一个freeRTOS工程,但是出现报错如下:
Error: L6218E: Undefined symbol xQueueCreateMutex (referred from gui_x_freertos.o).
Error: L6218E: Undefined symbol xTaskGetCurrentTaskHandle (referred from gui_x_freertos.o).
找了半天也没有找到原因。
求助于eric2013和各位,谢谢。

jxdqwer 发表于 2016-11-7 09:24:55

你需要在freeRTOSconfig.h里面打开相关api

jxdqwer 发表于 2016-11-7 09:27:48

你这个应该是主函数没包含freertos
// Kernel includes.
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "croutine.h"
#include "semphr.h"
#include "event_groups.h"
加上这几个

mcza30 发表于 2016-11-7 12:31:04

回 jxdqwer 的帖子

jxdqwer:你这个应该是主函数没包含freertos
// Kernel includes.
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
....... (2016-11-07 09:27) images/back.gif

谢谢jxdqwer,不过加上了这些,还是同样报错。

aqua2013 发表于 2019-4-17 09:19:04

#define configUSE_MUTEXES                     1
加上这个配置
页: [1]
查看完整版本: 求助:Undefined symbol xQueueCreateMutex