Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
RT-Thread一般讨论
用 MDK 编译 BSP 下的 mini2440 失败,请教
发布于 2011-06-20 22:13:56 浏览:6926
订阅该版
有没有哪位朋友可用 MDK 编译 rt-thread 应用,指点一下 按照 WIKI 中 [http://www.rt-thread.org/dokuwiki/doku. ... 8%AF%91rtt](http://www.rt-thread.org/dokuwiki/doku.php?id=%E5%A6%82%E4%BD%95%E5%9C%A8keil%E4%B8%8B%E7%BC%96%E8%AF%91rtt) 的提示,我做了以下工作,CROSS_TOOL = 'gcc' 成功,但 CROSS_TOOL = 'keil' 失败。MDK 3.8 和 MDK 4.20 都失败。我做了以下工作 1 安装 MDK 2 安装 python ,scons 3 修改 bsp/mini2440/rtconfig.py 正确配置 gcc 和 MDK 位置 4 修改 bsp/mini2440/rtconfig.py 中 CROSS_TOOL = 'keil' 5 修改 bsp/mini2440/rtconfig.h 注释 /* #define RT_USING_MODULE */ /* #define RT_USING_LIBDL */ /* #define RT_USING_NEWLIB */ /* #define RT_USING_PTHREADS */ 6 命令行下切换到 bsp/mini2440 下执行 scons --target=mdk -s 生成 project.uv2 7 编译,显示无法建立目标,以下是编译输出信息。 Build target 'RT-Thread Mini2440' compiling application.c... lcd.h(19): warning: #1295-D: Deprecated declaration rt_hw_lcd_init - give arg types application.c(105): warning: #223-D: function "devfs_init" declared implicitly application.c(151): warning: #223-D: function "rt_hw_key_init" declared implicitly application.c(157): error: #513: a value of type "rt_device_t" cannot be assigned to an entity of type "rt_device_t *" application.c(160): warning: #223-D: function "rtgui_graphic_set_device" declared implicitly application.c(163): warning: #223-D: function "rtgui_startup" declared implicitly compiling startup.c... startup.c(111): warning: #223-D: function "rt_hw_serial_register" declared implicitly startup.c(121): warning: #223-D: function "rt_hw_sdcard_init" declared implicitly compiling board.c... compiling console.c... compiling led.c... compiling sdcard.c... compiling touch.c... lcd.h(19): warning: #1295-D: Deprecated declaration rt_hw_lcd_init - give arg types compiling key.c... key.c(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)" compiling calibration.c... compiling lcd_t35.c... lcd.h(19): warning: #1295-D: Deprecated declaration rt_hw_lcd_init - give arg types compiling clock.c... compiling device.c... compiling idle.c... compiling ipc.c... compiling irq.c... compiling kservice.c... compiling mem.c... compiling mempool.c... compiling module.c... compiling object.c... compiling rtm.c... compiling scheduler.c... compiling slab.c... compiling thread.c... compiling timer.c... compiling cpu.c... compiling interrupt.c... compiling mmu.c... compiling rtc.c... compiling serial.c... compiling stack.c... compiling system_clock.c... compiling trap.c... compiling backtrace.c... compiling showmem.c... compiling dfs.c... compiling dfs_fs.c... compiling dfs_file.c... compiling dfs_posix.c... compiling dfs_elm.c... compiling ff.c... compiling cc936.c... compiling devfs.c... compiling devfs_console.c... ....componentsdfsfilesystemsdevfsconsole.c(51): warning: #177-D: function "console_control" was declared but never referenced compiling png.c... compiling pngerror.c... ....componentsexternallibpngpngerror.c(116): warning: #83-D: type qualifier specified more than once compiling pnggccrd.c... compiling pngget.c... compiling pngmem.c... compiling pngpread.c... compiling pngread.c... compiling pngrio.c... compiling pngrtran.c... compiling pngrutil.c... compiling pngset.c... compiling pngtrans.c... ....componentsexternallibpngpngtrans.c(255): warning: #83-D: type qualifier specified more than once ....componentsexternallibpngpngtrans.c(290): warning: #83-D: type qualifier specified more than once ....componentsexternallibpngpngtrans.c(325): warning: #83-D: type qualifier specified more than once compiling pngvcrd.c... compiling pngwio.c... compiling pngwrite.c... compiling pngwtran.c... compiling pngwutil.c... compiling cmd.c... compiling finsh_compiler.c... compiling finsh_error.c... compiling finsh_heap.c... compiling finsh_init.c... compiling finsh_node.c... compiling finsh_ops.c... compiling finsh_parser.c... compiling finsh_token.c... compiling finsh_var.c... compiling finsh_vm.c... compiling shell.c... compiling symbol.c... compiling blit.c... compiling color.c... compiling region.c... compiling rtgui_object.c... compiling rtgui_system.c... compiling rtgui_theme.c... compiling rtgui_xml.c... compiling dc.c... compiling dc_hw.c... compiling dc_buffer.c... compiling dc_client.c... compiling filerw.c... compiling image.c... compiling image_xpm.c... compiling image_hdc.c... compiling image_bmp.c... compiling image_png.c... compiling image_jpg.c... compiling image_container.c... compiling font.c... compiling font_bmp.c... compiling font_hz_file.c... compiling font_hz_bmp.c... compiling asc12font.c... compiling asc16font.c... compiling hz12font.c... compiling hz16font.c... compiling framebuffer_driver.c... compiling pixel_driver.c... compiling driver.c... compiling mouse.c... compiling panel.c... compiling server.c... compiling topwin.c... compiling box.c... compiling button.c... compiling checkbox.c... compiling container.c... compiling combobox.c... compiling iconbox.c... compiling label.c... compiling textview.c... ....components tguiwidgets extview.c(23): warning: #513-D: a value of type "char *" cannot be assigned to an entity of type "unsigned char *" compiling listctrl.c... compiling menu.c... compiling progressbar.c... compiling radiobox.c... compiling slider.c... compiling scrollbar.c... compiling staticline.c... compiling textbox.c... compiling listbox.c... compiling title.c... compiling toplevel.c... compiling notebook.c... compiling view.c... compiling list_view.c... compiling about_view.c... compiling filelist_view.c... compiling widget.c... compiling window.c... compiling workbench.c... compiling demo_view_dc_buffer.c... ....examplesguidemo_view_dc_buffer.c(13): warning: #177-D: variable "background" was declared but never referenced compiling demo_view_instrument_panel.c... compiling demo_fnview.c... compiling demo_listview.c... compiling demo_listview_icon.c... compiling demo_panel_single.c... compiling demo_view.c... compiling demo_view_animation.c... compiling demo_view_buffer_animation.c... compiling demo_view_box.c... compiling demo_view_button.c... compiling demo_view_checkbox.c... compiling demo_view_dc.c... ....examplesguidemo_view_dc.c(29): warning: #177-D: variable "vx" was declared but never referenced ....examplesguidemo_view_dc.c(30): warning: #177-D: variable "vy" was declared but never referenced compiling demo_view_image.c... compiling demo_view_module.c... compiling demo_view_label.c... compiling demo_view_mywidget.c... compiling demo_view_progressbar.c... compiling demo_view_radiobox.c... compiling demo_view_listbox.c... compiling demo_view_slider.c... compiling demo_view_combobox.c... compiling demo_view_listctrl.c... compiling demo_view_menu.c... ....examplesguidemo_view_menu.c(65): warning: #167-D: argument of type "int (*)(struct rtgui_widget *, struct rtgui_event *)" is incompatible with parameter of type "rtgui_onbutton_func_t" compiling demo_view_scrollbar.c... compiling demo_view_textbox.c... compiling demo_view_window.c... compiling demo_view_benchmark.c... ....examplesguidemo_view_benchmark.c(25): warning: #223-D: function "rand" declared implicitly ....examplesguidemo_view_benchmark.c(105): warning: #223-D: function "srand" declared implicitly compiling demo_workbench.c... ....examplesguidemo_workbench.c(18): warning: #223-D: function "demo_view_next" declared implicitly ....examplesguidemo_workbench.c(23): warning: #223-D: function "demo_view_prev" declared implicitly ....examplesguidemo_workbench.c(55): warning: #223-D: function "demo_view_benchmark" declared implicitly ....examplesguidemo_workbench.c(58): warning: #223-D: function "demo_view_dc" declared implicitly ....examplesguidemo_workbench.c(66): warning: #223-D: function "demo_view_dc_buffer" declared implicitly ....examplesguidemo_workbench.c(68): warning: #223-D: function "demo_view_animation" declared implicitly ....examplesguidemo_workbench.c(70): warning: #223-D: function "demo_view_buffer_animation" declared implicitly ....examplesguidemo_workbench.c(73): warning: #223-D: function "demo_view_window" declared implicitly ....examplesguidemo_workbench.c(74): warning: #223-D: function "demo_view_label" declared implicitly ....examplesguidemo_workbench.c(75): warning: #223-D: function "demo_view_button" declared implicitly ....examplesguidemo_workbench.c(76): warning: #223-D: function "demo_view_checkbox" declared implicitly ....examplesguidemo_workbench.c(77): warning: #223-D: function "demo_view_progressbar" declared implicitly ....examplesguidemo_workbench.c(78): warning: #223-D: function "demo_view_scrollbar" declared implicitly ....examplesguidemo_workbench.c(79): warning: #223-D: function "demo_view_radiobox" declared implicitly ....examplesguidemo_workbench.c(80): warning: #223-D: function "demo_view_textbox" declared implicitly ....examplesguidemo_workbench.c(81): warning: #223-D: function "demo_view_listbox" declared implicitly ....examplesguidemo_workbench.c(82): warning: #223-D: function "demo_view_menu" declared implicitly ....examplesguidemo_workbench.c(83): warning: #223-D: function "demo_view_listctrl" declared implicitly ....examplesguidemo_workbench.c(84): warning: #223-D: function "demo_view_combobox" declared implicitly ....examplesguidemo_workbench.c(85): warning: #223-D: function "demo_view_slider" declared implicitly ....examplesguidemo_workbench.c(86): warning: #223-D: function "demo_view_mywidget" declared implicitly ....examplesguidemo_workbench.c(88): warning: #223-D: function "demo_view_image" declared implicitly ....examplesguidemo_workbench.c(95): warning: #223-D: function "demo_listview_view" declared implicitly ....examplesguidemo_workbench.c(96): warning: #223-D: function "demo_listview_icon_view" declared implicitly ....examplesguidemo_workbench.c(98): warning: #223-D: function "demo_fn_view" declared implicitly ....examplesguidemo_workbench.c(102): warning: #223-D: function "demo_view_show" declared implicitly compiling gui_init.c... compiling mywidget.c... Target not created
查看更多
6
个回答
默认排序
按发布时间排序
huangxw
2011-06-20
这家伙很懒,什么也没写!
我这个 rt-thread 是 6月19日的最新 SVN ,看错误提示是 rt_device_find 的返回值和赋值变量类型不同。但我用 Sourcery G++ 编译又正确,请教为什么
huangxw
2011-06-20
这家伙很懒,什么也没写!
已经解决,是 SVN 中的代码有问题,修改 bsp\mini2440\application.c 第 142 行 rt_device_t *lcd; 修改为 rt_device_t lcd;
huangxw
2011-06-20
这家伙很懒,什么也没写!
但编译出来不能用,用 GCC 编译可用,用 MDK 编译不能用
shaolin
2011-06-20
这家伙很懒,什么也没写!
rt_device_t *lcd;问题在昨天已经修复了。 MDK编译后运行存在问题,这个确认了,正在查找原因。
shaolin
2011-06-21
这家伙很懒,什么也没写!
先将RTGUI_IMAGE_JPEG注释掉吧,目前看来使用MDK编译JPEG库时会导致模拟运行出现异常。
撰写答案
登录
注册新账号
关注者
0
被浏览
6.9k
关于作者
huangxw
这家伙很懒,什么也没写!
提问
6
回答
17
被采纳
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
开源共生 商业共赢 | RT-Thread 2024开发者大会议程正式发布!
2
【24嵌入式设计大赛】基于RT-Thread星火一号的智慧家居系统
3
RT-Thread EtherKit开源以太网硬件正式发布
4
如何在master上的BSP中添加配置yml文件
5
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
热门标签
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
编译报错
msh
SFUD
rt_mq_消息队列_msg_queue
keil_MDK
ulog
MicroPython
C++_cpp
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
19
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
6
个答案
2
次被采纳
用户名由3_15位
13
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
RTT_逍遥
1
篇文章
6
次点赞
大龄码农
1
篇文章
5
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部