OpenEdv-开源电子网

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

lwip+ucosiii移植时编译报错问题

[复制链接]

12

主题

59

帖子

0

精华

初级会员

Rank: 2

积分
187
金钱
187
注册时间
2016-9-2
在线时间
42 小时
发表于 2017-7-19 10:26:08 | 显示全部楼层 |阅读模式
10金钱
如题,我是在网络实验,也就是udp的基础上移植ucosiii,用的是stm32f103 战舰v3的板子,移植完成后编译,出现错误如下:
*** Using Compiler 'V5.04 update 1 (build 49)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'NET_LWIP'
compiling delay.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\SYSTEM\delay\delay.c: 0 warnings, 1 error
compiling usart.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\SYSTEM\usart\usart.c: 0 warnings, 1 error
compiling bsp.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\UCOSIII-BSP\bsp.c: 0 warnings, 1 error
compiling cpu_c.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uC-CPU\ARM-Cortex-M3\RealView\cpu_c.c: 0 warnings, 1 error
compiling cpu_core.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uC-CPU\cpu_core.c: 0 warnings, 1 error
compiling lib_ascii.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uC-LIB\lib_ascii.c: 0 warnings, 1 error
compiling lib_math.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uC-LIB\lib_math.c: 0 warnings, 1 error
compiling lib_mem.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uC-LIB\lib_mem.c: 0 warnings, 1 error
compiling lib_str.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uC-LIB\lib_str.c: 0 warnings, 1 error
compiling os_cfg_app.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_cfg_app.c: 0 warnings, 1 error
compiling os_core.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_core.c: 0 warnings, 1 error
compiling os_dbg.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_dbg.c: 0 warnings, 1 error
compiling os_flag.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_flag.c: 0 warnings, 1 error
compiling os_int.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_int.c: 0 warnings, 1 error
compiling os_mem.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_mem.c: 0 warnings, 1 error
compiling os_msg.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_msg.c: 0 warnings, 1 error
compiling os_mutex.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_mutex.c: 0 warnings, 1 error
compiling os_pend_multi.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_pend_multi.c: 0 warnings, 1 error
compiling os_prio.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_prio.c: 0 warnings, 1 error
compiling os_q.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_q.c: 0 warnings, 1 error
compiling os_sem.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_sem.c: 0 warnings, 1 error
compiling os_stat.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_stat.c: 0 warnings, 1 error
compiling os_task.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_task.c: 0 warnings, 1 error
compiling os_tick.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_tick.c: 0 warnings, 1 error
compiling os_time.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_time.c: 0 warnings, 1 error
compiling os_tmr.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_tmr.c: 0 warnings, 1 error
compiling os_var.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Source\os_var.c: 0 warnings, 1 error
compiling os_cpu_c.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\uCOS-III\Ports\ARM-Cortex-M3\Generic\RealView\os_cpu_c.c: 0 warnings, 1 error
compiling os_app_hooks.c...
..\UCOSIII\uC-LIB\lib_def.h(425): error:  #35: #error directive: "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
  #error  "CPU_CFG_DATA_SIZE  illegally #defined in 'cpu.h'      "
..\UCOSIII\UCOSIII-CONFIG\os_app_hooks.c: 0 warnings, 1 error
"..\OBJ\NET_LWIP.axf" - 29 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:07




这个是什么问题啊?论坛上看到别人也有这个问题,但是都没有说是怎么解决的啊?哪位大神帮忙看一下啊?楼主小白,现在需要用到ucosiii+lwip做项目

最佳答案

查看完整内容[请看2#楼]

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

使用道具 举报

12

主题

59

帖子

0

精华

初级会员

Rank: 2

积分
187
金钱
187
注册时间
2016-9-2
在线时间
42 小时
 楼主| 发表于 2017-7-19 10:26:09 | 显示全部楼层
自己顶。。。。。。。。。。。。。。。。。。。。。。。。。
回复

使用道具 举报

12

主题

59

帖子

0

精华

初级会员

Rank: 2

积分
187
金钱
187
注册时间
2016-9-2
在线时间
42 小时
 楼主| 发表于 2017-7-19 11:47:09 | 显示全部楼层
:):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):)
回复

使用道具 举报

12

主题

59

帖子

0

精华

初级会员

Rank: 2

积分
187
金钱
187
注册时间
2016-9-2
在线时间
42 小时
 楼主| 发表于 2017-7-19 14:37:06 | 显示全部楼层
没人呀??????????????????
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2024-11-25 01:06

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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