Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
RT-Thread一般讨论
最新的mini2440代码编译报错
发布于 2011-01-26 17:12:20 浏览:7331
订阅该版
环境: Keil RVMDK-ARM 4.14 python-2.5.2 + scons-2.0.1 ``` scons: warning: No installed VCs File "E:Jerrymini2440 ttsvn_rt-thread t-threadspmini2440SConstruct", line 18, in
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly File "E:Jerrymini2440 ttsvn_rt-thread t-threadspmini2440SConstruct", line 18, in
"lcd.h", line 19: Warning: #1295-D: Deprecated declaration rt_hw_lcd_init - give arg types void rt_hw_lcd_init(); ^ "application.c", line 126: Warning: #223-D: function "rt_hw_key_init" declared implicitly rt_hw_key_init(); ^ "application.c", line 132: Warning: #223-D: function "rtgui_startup" declared implicitly rtgui_startup(); ^ application.c: 3 warnings, 0 errors "key.c", line 335: Warning: #513-D: a value of type "void (*)(rt_device_t, rt_size_t)" cannot be assigned to an entity of type "rt_err_t (*)(rt_device_t, rt_size_t)" key_device->parent.rx_indicate = rtgui_key_rx; ^ key.c: 1 warning, 0 errors "lcd.h", line 19: Warning: #1295-D: Deprecated declaration rt_hw_lcd_init - give arg types void rt_hw_lcd_init(); ^ "lcd_n35.c", line 351: Error: #513: a value of type "void *" cannot be assigned to an entity of type "rt_uint16_t" *((rt_uint16_t*)args) = lcd->hw_framebuffer; ^ lcd_n35.c: 1 warning, 1 error scons: *** [buildsplcd_n35.o] Error 1 ``` ![mdk.GIF](https://oss-club.rt-thread.org/uploads/2654_ece6735e4316ef19b34d19afe660828b.gif)
查看更多
7
个回答
默认排序
按发布时间排序
bernard
2011-01-26
这家伙很懒,什么也没写!
默认是lcd_t35.c的驱动。你用的是lcd_n35.c,对照着lcd_t35.c改改吧。这个后面会修正
jerry619
2011-01-26
这家伙很懒,什么也没写!
用默认的PNL_T35选项编译也同样报错呢? 是不是我哪里搞错了,我是第一次用这个scons rtconfig.py文件中的设置: ``` # panel options # 'PNL_A70','PNL_N35', 'PNL_T35' RT_USING_LCD_TYPE = 'PNL_T35' # toolchains options ARCH = 'arm' CPU = 's3c24x0' TextBase = '0x30000000' CROSS_TOOL = 'keil' if CROSS_TOOL == 'gcc': PLATFORM = 'gcc' EXEC_PATH = 'E:/Program Files/CodeSourcery/Sourcery G++ Lite/bin' elif CROSS_TOOL == 'keil': PLATFORM = 'armcc' EXEC_PATH = 'C:/Keil' ```
bernard
2011-01-26
这家伙很懒,什么也没写!
默认的编译无错,已经试过了。
jerry619
2011-01-26
这家伙很懒,什么也没写!
全部重新来了一次,还是报错呢. 不会是我的编译器版本有问题吧? E:Jerrymini2440 ttsvn_rt-thread t-threadspmini2440>scons -c scons: Reading SConscript files ... scons: done reading SConscript files. scons: Cleaning targets ... Removed buildspapplication.o Removed buildspoard.o Removed buildspcalibration.o Removed buildspconsole.o Removed buildspkey.o scons: done cleaning targets. E:Jerrymini2440 ttsvn_rt-thread t-threadspmini2440>scons scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: buildsp armcc -o buildspapplication.o -c --device DARMSS9 --apcs=interwork --diag_suppress=870 -I"C:/Keil/ARM/RV31/INC" -g -O0 -I. -IE:Jerrymini2440 ttsvn_rt-thread t-thread -IE:Jerrymini2440 ttsvn_rt-thread t-threadinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarms3c24x0 -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarmcommon -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsdfs -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsdfsinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsfinsh -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentslibdl -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents gtuicommon -IE:Jerrymini2440 ttsvn_ rt-thread t-threadcomponents tguiserver -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiwidgets application.c "lcd.h", line 19: Warning: #1295-D: Deprecated declaration rt_hw_lcd_init - give arg types void rt_hw_lcd_init(); ^ "application.c", line 126: Warning: #223-D: function "rt_hw_key_init" declared implicitly rt_hw_key_init(); ^ "application.c", line 132: Warning: #223-D: function "rtgui_startup" declared implicitly rtgui_startup(); ^ application.c: 3 warnings, 0 errors armcc -o buildspoard.o -c --device DARMSS9 --apcs=interwork --diag_suppress=870 -I"C:/Keil/ARM/RV31/INC" -g -O0 -I. -IE:Jerrymini2440 ttsvn_rt-thread t-thread -IE:Jerrymini2440 ttsvn_rt-thread t-threadinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarms3c24x0 -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarmcommon -IE:Jerrymini2440 ttsvn_rt-thread t-th readcomponentsdfs -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsdfsinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsfinsh -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentslibdl -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents gtuicommon -IE:Jerrymini2440 ttsvn_rt-thr ead t-threadcomponents tguiserver -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiwidgets board.c armcc -o buildspcalibration.o -c --device DARMSS9 --apcs=interwork --diag_suppress=870 -I"C:/Keil/ARM/RV31/INC" -g -O0 -I. -IE:Jerrymini2440 ttsvn_rt-thread t-thread -IE:Jerrymini2440 ttsvn_rt-thread t-threadinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarms3c24x0 -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarmcommon -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsdfs -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsdfsinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsfinsh -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentslibdl -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents gtuicommon -IE:Jerrymini2440 ttsvn_ rt-thread t-threadcomponents tguiserver -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiwidgets calibration.c armcc -o buildspconsole.o -c --device DARMSS9 --apcs=interwork --diag_suppress=870 -I"C:/Keil/ARM/RV31/INC" -g -O0 -I. -IE:Jerrymini2440 ttsvn_rt-thread t-thread -IE:Jerrymini2440 ttsvn_rt-thread t-threadinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarms3c24x0 -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarmcommon -IE:Jerrymini2440 ttsvn_rt-thread t- threadcomponentsdfs -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsdfsinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsfinsh -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentslibdl -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents gtuicommon -IE:Jerrymini2440 ttsvn_rt-t hread t-threadcomponents tguiserver -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiwidgets console.c armcc -o buildspkey.o -c --device DARMSS9 --apcs=interwork --diag_suppress=870 -I"C:/Keil/ARM/RV31/INC" -g -O0 -I. -IE:Jerrymini2440 ttsvn_rt-thread t-thread -IE:Jerrymini2440 ttsvn_rt-thread t-threadinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarms3c24x0 -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarmcommon -IE:Jerrymini2440 ttsvn_rt-thread t-thre adcomponentsdfs -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsdfsinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsfinsh -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentslibdl -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents gtuicommon -IE:Jerrymini2440 ttsvn_rt-threa d t-threadcomponents tguiserver -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiwidgets key.c "key.c", line 335: Warning: #513-D: a value of type "void (*)(rt_device_t, rt_size_t)" cannot be assigned to an entity of type "rt_err_t (*)(rt_device_t, rt_size_t)" key_device->parent.rx_indicate = rtgui_key_rx; ^ key.c: 1 warning, 0 errors armcc -o buildsplcd_t35.o -c --device DARMSS9 --apcs=interwork --diag_suppress=870 -I"C:/Keil/ARM/RV31/INC" -g -O0 -I. -IE:Jerrymini2440 ttsvn_rt-thread t-thread -IE:Jerrymini2440 ttsvn_rt-thread t-threadinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarms3c24x0 -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarmcommon -IE:Jerrymini2440 ttsvn_rt-thread t- threadcomponentsdfs -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsdfsinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsfinsh -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentslibdl -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents gtuicommon -IE:Jerrymini2440 ttsvn_rt-t hread t-threadcomponents tguiserver -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiwidgets lcd_t35.c "lcd.h", line 19: Warning: #1295-D: Deprecated declaration rt_hw_lcd_init - give arg types void rt_hw_lcd_init(); ^ "lcd_t35.c", line 353: Error: #513: a value of type "void *" cannot be assigned to an entity of type "rt_uint16_t" *((rt_uint16_t*)args) = lcd->hw_framebuffer; ^ "lcd_t35.c", line 383: Warning: #513-D: a value of type "rt_err_t (*)(rt_device_t)" cannot be assigned to an entity of type "rt_err_t (*)(rt_device_t, rt_uint16_t)" lcd->parent.open = rt_lcd_close; ^ lcd_t35.c: 2 warnings, 1 error scons: *** [buildsplcd_t35.o] Error 1 scons: building terminated because of errors. [/size] [attach]547[/attach]
jerry619
2011-01-26
这家伙很懒,什么也没写!
似乎这个版本的MDK编译器比较严格, 将 ``` *((rt_uint16_t*)args) = lcd->hw_framebuffer; ``` 改成 ``` *((rt_uint16_t*)args) = (rt_uint16_t)(lcd->hw_framebuffer); ``` 后lcd_t35.c文件编译通过了,不过后面又出了别的错误: scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: buildsp armcc -o buildsrcmodule.o -c --device DARMSS9 --apcs=interwork --diag_suppress=870 -I"C:/Keil/ARM/RV31/INC" -g -O0 -I. -IE:Jerrymini2440 ttsvn_rt-thread t-thread -IE:Jerrymini2440 ttsvn_rt-thread t-threadinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarms3c24x0 -IE:Jerrymini2440 ttsvn_rt-thread t-threadlibcpuarmcommon -IE:Jerrymini2440 ttsvn_rt-thread t-t hreadcomponentsdfs -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsdfsinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentsfinsh -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponentslibdl -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiinclude -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents gtuicommon -IE:Jerrymini2440 ttsvn_rt-th read t-threadcomponents tguiserver -IE:Jerrymini2440 ttsvn_rt-thread t-threadcomponents tguiwidgets E:Jerrymini2440 ttsvn_rt-thread t-threadsrcmodule.c "E:Jerrymini2440 ttsvn_rt-thread t-threadsrcmodule.c", line 381: Warning: #167-D: argument of type "rt_uint8_t *" is incompatible with parameter of type "const char *" if (rt_strcmp(shstrab + shdr[index].sh_name, ELF_DYNSYM) == 0) break; ^ "E:Jerrymini2440 ttsvn_rt-thread t-threadsrcmodule.c", line 406: Warning: #167-D: argument of type "rt_uint8_t *" is incompatible with parameter of type "const char *" rt_size_t length = rt_strlen(strtab + symtab[i].st_name) + 1; ^ "E:Jerrymini2440 ttsvn_rt-thread t-threadsrcmodule.c", line 408: Error: #513: a value of type "rt_uint8_t *" cannot be assigned to an entity of type "rt_uint32_t" module->symtab[count].addr = module->module_space + symtab[i].st_value; ^ "E:Jerrymini2440 ttsvn_rt-thread t-threadsrcmodule.c", line 410: Error: #167: argument of type "const char *" is incompatible with parameter of type "void *" rt_memset(module->symtab[count].name, 0, length); ^ "E:Jerrymini2440 ttsvn_rt-thread t-threadsrcmodule.c", line 411: Error: #167: argument of type "const char *" is incompatible with parameter of type "void *" rt_memcpy(module->symtab[count].name, strtab + symtab[i].st_name, length); ^ "E:Jerrymini2440 ttsvn_rt-thread t-threadsrcmodule.c", line 432: Warning: #167-D: argument of type "const rt_uint8_t *" is incompatible with parameter of type "const char *" module->mpool = rt_mp_create(name, 256, sizeof(struct rt_module_page)); ^ "E:Jerrymini2440 ttsvn_rt-thread t-threadsrcmodule.c", line 437: Warning: #167-D: argument of type "const rt_uint8_t *" is incompatible with parameter of type "const char *" module->module_thread = rt_thread_create(name, ^ "E:Jerrymini2440 ttsvn_rt-thread t-threadsrcmodule.c", line 438: Warning: #167-D: argument of type "void *" is incompatible with parameter of type "void (*)(void *)" module->module_entry, RT_NULL, ^ "E:Jerrymini2440 ttsvn_rt-thread t-threadsrcmodule.c", line 516: Warning: #167-D: argument of type "const char *" is incompatible with parameter of type "const rt_uint8_t *" module = rt_module_load(filename, (void *)buffer); ^ "E:Jerrymini2440 ttsvn_rt-thread t-threadsrcmodule.c", line 735: Error: #167: argument of type "const char *" is incompatible with parameter of type "void *" for(i=0; i
nsym; i++) rt_free(module->symtab[i].name); ^ "E:Jerrymini2440 ttsvn_rt-thread t-threadsrcmodule.c", line 46: Warning: #177-D: variable "rt_module_page_list" was declared but never referenced static struct rt_module_page *rt_module_page_list; ^ E:Jerrymini2440 ttsvn_rt-thread t-threadsrcmodule.c: 7 warnings, 4 errors scons: *** [buildsrcmodule.o] Error 1 scons: building terminated because of errors. [/size]
bernard
2011-01-26
这家伙很懒,什么也没写!
原来你用的是Keil MDK,我这边试的是gcc。 Keil MDK必须把MODULE关闭才行,目前还不支持。
撰写答案
登录
注册新账号
关注者
0
被浏览
7.3k
关于作者
jerry619
这家伙很懒,什么也没写!
提问
7
回答
15
被采纳
0
关注TA
发私信
相关问题
1
有关动态模块加载的一篇论文
2
最近的调程序总结
3
晕掉了,这么久都不见layer2的踪影啊
4
继续K9ii的历程
5
[GUI相关] FreeType 2
6
[GUI相关]嵌入式系统中文输入法的设计
7
20081101 RT-Thread开发者聚会总结
8
嵌入式系统基础
9
linux2.4.19在at91rm9200 上的寄存器设置
10
[转]基于嵌入式Linux的通用触摸屏校准程序
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
freemodbus主机在freertos的适配,参考rtthread例程
2
开源共生 商业共赢 | RT-Thread 2024开发者大会议程正式发布!
3
【24嵌入式设计大赛】基于RT-Thread星火一号的智慧家居系统
4
RT-Thread EtherKit开源以太网硬件正式发布
5
还在担心bsp不好维护吗?快使用yml管理主线bsp
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
SFUD
msh
rt_mq_消息队列_msg_queue
keil_MDK
ulog
MicroPython
C++_cpp
本月问答贡献
出出啊
1517
个答案
342
次被采纳
小小李sunny
1443
个答案
289
次被采纳
张世争
805
个答案
174
次被采纳
crystal266
547
个答案
161
次被采纳
whj467467222
1222
个答案
148
次被采纳
本月文章贡献
出出啊
1
篇文章
4
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
1
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部