初级会员
- 积分
- 134
- 金钱
- 134
- 注册时间
- 2012-6-3
- 在线时间
- 21 小时
|
3金钱
按照UCOSIII的移植手册网上添加,报错
..\UCOSIII\uC-LIB\lib_def.h(420): error: #35: #error directive: "CPU_CFG_DATA_SIZE illegally #defined in 'cpu.h' "
一共29条,
网上也找不到相关的错误资料。。。,2
原子大哥的其他例程移植的都是UCOSIII,只有LWIP用的UCOSII,想移植到UCOSIII上,做个有网络通讯的产品,有没有帮个忙的?
compiling delay.c...
..\UCOSIII\uC-LIB\lib_def.h(420): 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 sys.c...
compiling usart.c...
..\UCOSIII\uC-LIB\lib_def.h(420): 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 tcp_out.c...
..\LWIP\lwip-1.4.1\src\core\tcp_out.c(845): warning: #550-D: variable "tcphdr" was set but never used
struct tcp_hdr *tcphdr;
..\LWIP\lwip-1.4.1\src\core\tcp_out.c(1367): warning: #550-D: variable "tcphdr" was set but never used
struct tcp_hdr *tcphdr;
..\LWIP\lwip-1.4.1\src\core\tcp_out.c: 2 warnings, 0 errors
compiling bsp.c...
..\UCOSIII\uC-LIB\lib_def.h(420): 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_BSP\bsp.c: 0 warnings, 1 error
compiling cpu_core.c...
..\UCOSIII\uC-LIB\lib_def.h(420): 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 cpu_c.c...
..\UCOSIII\uC-LIB\lib_def.h(420): 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-M4\RealView\cpu_c.c: 0 warnings, 1 error
compiling lib_ascii.c...
..\UCOSIII\uC-LIB\lib_def.h(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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(420): 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-M4\Generic\RealView\os_cpu_c.c: 0 warnings, 1 error
compiling os_app_hooks.c...
..\UCOSIII\uC-LIB\lib_def.h(420): 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_CONFIG\os_app_hooks.c: 0 warnings, 1 error
"..\OBJ\Template.axf" - 29 Error(s), 2 Warning(s).
Target not created.
Build Time Elapsed: 00:00:36
|
最佳答案
查看完整内容[请看2#楼]
给你发一份测试过的,可以使用的F407探索者开发板的LWIP+UCOSIII的移植,是在WebServer实验的基础上修改的
|