OpenEdv-开源电子网

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

UCOS移植到STM32F1出现错误?

[复制链接]

6

主题

21

帖子

0

精华

新手上路

积分
35
金钱
35
注册时间
2018-11-2
在线时间
14 小时
发表于 2019-6-2 11:39:27 | 显示全部楼层 |阅读模式
1金钱

*** Using Compiler 'V5.05 update 2 (build 169)', folder: 'D:\keil5\keillujin\ARM\ARMCC\Bin'
Build target 'Target 1'
compiling os_cpu_c.c...
.\UCOS\CORE\ucos_ii.h(433): error:  #29: expected an expression
  #if
S_FLAG_NAME_SIZE > 1
.\UCOS\CORE\ucos_ii.h(853): error:  #29: expected an expression
  #if (
S_FLAG_EN > 0) && (
S_FLAG_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1306): error:  #29: expected an expression
  #if (OS_EVENT_NAME_SIZE > 1) || (
S_FLAG_NAME_SIZE > 1) || (OS_MEM_NAME_SIZE > 1) || (OS_TASK_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1463): error:  #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
      #error  "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
UCOS\CPU\os_cpu_c.c: 0 warnings, 4 errors
compiling os_core.c...
.\UCOS\CORE\ucos_ii.h(433): error:  #29: expected an expression
  #if
S_FLAG_NAME_SIZE > 1
.\UCOS\CORE\ucos_ii.h(853): error:  #29: expected an expression
  #if (
S_FLAG_EN > 0) && (
S_FLAG_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1306): error:  #29: expected an expression
  #if (OS_EVENT_NAME_SIZE > 1) || (
S_FLAG_NAME_SIZE > 1) || (OS_MEM_NAME_SIZE > 1) || (OS_TASK_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1463): error:  #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
      #error  "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
UCOS\CORE\os_core.c: 0 warnings, 4 errors
compiling os_dbg_r.c...
UCOS\CORE\ucos_ii.h(433): error:  #29: expected an expression
  #if
S_FLAG_NAME_SIZE > 1
UCOS\CORE\ucos_ii.h(853): error:  #29: expected an expression
  #if (
S_FLAG_EN > 0) && (
S_FLAG_NAME_SIZE > 1)
UCOS\CORE\ucos_ii.h(1306): error:  #29: expected an expression
  #if (OS_EVENT_NAME_SIZE > 1) || (
S_FLAG_NAME_SIZE > 1) || (OS_MEM_NAME_SIZE > 1) || (OS_TASK_NAME_SIZE > 1)
UCOS\CORE\ucos_ii.h(1463): error:  #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
      #error  "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
UCOS\CORE\os_dbg_r.c: 0 warnings, 4 errors
compiling os_flag.c...
.\UCOS\CORE\ucos_ii.h(433): error:  #29: expected an expression
  #if
S_FLAG_NAME_SIZE > 1
.\UCOS\CORE\ucos_ii.h(853): error:  #29: expected an expression
  #if (
S_FLAG_EN > 0) && (
S_FLAG_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1306): error:  #29: expected an expression
  #if (OS_EVENT_NAME_SIZE > 1) || (
S_FLAG_NAME_SIZE > 1) || (OS_MEM_NAME_SIZE > 1) || (OS_TASK_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1463): error:  #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
      #error  "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
UCOS\CORE\os_flag.c: 0 warnings, 4 errors
compiling os_mbox.c...
.\UCOS\CORE\ucos_ii.h(433): error:  #29: expected an expression
  #if
S_FLAG_NAME_SIZE > 1
.\UCOS\CORE\ucos_ii.h(853): error:  #29: expected an expression
  #if (
S_FLAG_EN > 0) && (
S_FLAG_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1306): error:  #29: expected an expression
  #if (OS_EVENT_NAME_SIZE > 1) || (
S_FLAG_NAME_SIZE > 1) || (OS_MEM_NAME_SIZE > 1) || (OS_TASK_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1463): error:  #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
      #error  "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
UCOS\CORE\os_mbox.c: 0 warnings, 4 errors
compiling os_mem.c...
.\UCOS\CORE\ucos_ii.h(433): error:  #29: expected an expression
  #if
S_FLAG_NAME_SIZE > 1
.\UCOS\CORE\ucos_ii.h(853): error:  #29: expected an expression
  #if (
S_FLAG_EN > 0) && (
S_FLAG_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1306): error:  #29: expected an expression
  #if (OS_EVENT_NAME_SIZE > 1) || (
S_FLAG_NAME_SIZE > 1) || (OS_MEM_NAME_SIZE > 1) || (OS_TASK_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1463): error:  #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
      #error  "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
UCOS\CORE\os_mem.c: 0 warnings, 4 errors
compiling os_mutex.c...
.\UCOS\CORE\ucos_ii.h(433): error:  #29: expected an expression
  #if
S_FLAG_NAME_SIZE > 1
.\UCOS\CORE\ucos_ii.h(853): error:  #29: expected an expression
  #if (
S_FLAG_EN > 0) && (
S_FLAG_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1306): error:  #29: expected an expression
  #if (OS_EVENT_NAME_SIZE > 1) || (
S_FLAG_NAME_SIZE > 1) || (OS_MEM_NAME_SIZE > 1) || (OS_TASK_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1463): error:  #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
      #error  "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
UCOS\CORE\os_mutex.c: 0 warnings, 4 errors
compiling os_q.c...
.\UCOS\CORE\ucos_ii.h(433): error:  #29: expected an expression
  #if
S_FLAG_NAME_SIZE > 1
.\UCOS\CORE\ucos_ii.h(853): error:  #29: expected an expression
  #if (
S_FLAG_EN > 0) && (
S_FLAG_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1306): error:  #29: expected an expression
  #if (OS_EVENT_NAME_SIZE > 1) || (
S_FLAG_NAME_SIZE > 1) || (OS_MEM_NAME_SIZE > 1) || (OS_TASK_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1463): error:  #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
      #error  "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
UCOS\CORE\os_q.c: 0 warnings, 4 errors
compiling os_sem.c...
.\UCOS\CORE\ucos_ii.h(433): error:  #29: expected an expression
  #if
S_FLAG_NAME_SIZE > 1
.\UCOS\CORE\ucos_ii.h(853): error:  #29: expected an expression
  #if (
S_FLAG_EN > 0) && (
S_FLAG_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1306): error:  #29: expected an expression
  #if (OS_EVENT_NAME_SIZE > 1) || (
S_FLAG_NAME_SIZE > 1) || (OS_MEM_NAME_SIZE > 1) || (OS_TASK_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1463): error:  #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
      #error  "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
UCOS\CORE\os_sem.c: 0 warnings, 4 errors
compiling os_task.c...
.\UCOS\CORE\ucos_ii.h(433): error:  #29: expected an expression
  #if
S_FLAG_NAME_SIZE > 1
.\UCOS\CORE\ucos_ii.h(853): error:  #29: expected an expression
  #if (
S_FLAG_EN > 0) && (
S_FLAG_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1306): error:  #29: expected an expression
  #if (OS_EVENT_NAME_SIZE > 1) || (
S_FLAG_NAME_SIZE > 1) || (OS_MEM_NAME_SIZE > 1) || (OS_TASK_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1463): error:  #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
      #error  "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
UCOS\CORE\os_task.c: 0 warnings, 4 errors
compiling os_time.c...
.\UCOS\CORE\ucos_ii.h(433): error:  #29: expected an expression
  #if
S_FLAG_NAME_SIZE > 1
.\UCOS\CORE\ucos_ii.h(853): error:  #29: expected an expression
  #if (
S_FLAG_EN > 0) && (
S_FLAG_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1306): error:  #29: expected an expression
  #if (OS_EVENT_NAME_SIZE > 1) || (
S_FLAG_NAME_SIZE > 1) || (OS_MEM_NAME_SIZE > 1) || (OS_TASK_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1463): error:  #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
      #error  "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
UCOS\CORE\os_time.c: 0 warnings, 4 errors
compiling os_tmr.c...
.\UCOS\CORE\ucos_ii.h(433): error:  #29: expected an expression
  #if
S_FLAG_NAME_SIZE > 1
.\UCOS\CORE\ucos_ii.h(853): error:  #29: expected an expression
  #if (
S_FLAG_EN > 0) && (
S_FLAG_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1306): error:  #29: expected an expression
  #if (OS_EVENT_NAME_SIZE > 1) || (
S_FLAG_NAME_SIZE > 1) || (OS_MEM_NAME_SIZE > 1) || (OS_TASK_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1463): error:  #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
      #error  "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
UCOS\CORE\os_tmr.c: 0 warnings, 4 errors
compiling ucos_ii.c...
.\UCOS\CORE\ucos_ii.h(433): error:  #29: expected an expression
  #if
S_FLAG_NAME_SIZE > 1
.\UCOS\CORE\ucos_ii.h(853): error:  #29: expected an expression
  #if (
S_FLAG_EN > 0) && (
S_FLAG_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1306): error:  #29: expected an expression
  #if (OS_EVENT_NAME_SIZE > 1) || (
S_FLAG_NAME_SIZE > 1) || (OS_MEM_NAME_SIZE > 1) || (OS_TASK_NAME_SIZE > 1)
.\UCOS\CORE\ucos_ii.h(1463): error:  #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
      #error  "OS_CFG.H, Missing OS_FLAG_NAME_SIZE: Determines the size of flag group names"
UCOS\CORE\ucos_ii.c: 0 warnings, 4 errors
".\Obj\STM32-FD-FLASHLED.axf" - 52 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:06

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

使用道具 举报

6

主题

21

帖子

0

精华

新手上路

积分
35
金钱
35
注册时间
2018-11-2
在线时间
14 小时
 楼主| 发表于 2019-6-2 11:40:40 | 显示全部楼层
请问是怎么回事,为什么会出错?
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165353
金钱
165353
注册时间
2010-12-1
在线时间
2108 小时
发表于 2019-6-2 21:38:16 | 显示全部楼层
参考我们教程
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复

使用道具 举报

6

主题

21

帖子

0

精华

新手上路

积分
35
金钱
35
注册时间
2018-11-2
在线时间
14 小时
 楼主| 发表于 2019-6-8 15:15:08 | 显示全部楼层

OK.........
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2024-11-25 22:45

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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