初级会员
- 积分
- 187
- 金钱
- 187
- 注册时间
- 2016-9-2
- 在线时间
- 42 小时
|
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做项目
|
|