查看: 4256|回复: 9

[CodeWarrior] cw10.5里导入mqx里的example里的hello例子,build失败(已解决)

[复制链接]

该用户从未签到

21

主题

71

帖子

0

新手上路

Rank: 1

积分
133
最后登录
1970-1-1
发表于 2014-3-6 17:30:14 | 显示全部楼层 |阅读模式
错误信息,如下图所示,看上去就是下面的三个头文件找不到路径,这个是要在那里设置呢?#include
#include  
#include
hello.JPG
我知道答案 目前已有8人回答
回复

使用道具 举报

该用户从未签到

21

主题

71

帖子

0

新手上路

Rank: 1

积分
133
最后登录
1970-1-1
 楼主| 发表于 2014-3-6 18:54:20 | 显示全部楼层

RE:求助,cw10.5里导入mqx里的example里的hello例子,build失败

解决了,设置-i路径就可以了
回复 支持 反对

使用道具 举报

该用户从未签到

21

主题

71

帖子

0

新手上路

Rank: 1

积分
133
最后登录
1970-1-1
 楼主| 发表于 2014-3-6 19:23:12 | 显示全部楼层

RE:求助,cw10.5里导入mqx里的example里的hello例子,build失败

还有问题,怎么连uint32_t这样的类型也不认识呢?我已经设置了-I了呀
高人指点一下吧
回复 支持 反对

使用道具 举报

该用户从未签到

21

主题

71

帖子

0

新手上路

Rank: 1

积分
133
最后登录
1970-1-1
 楼主| 发表于 2014-3-6 19:25:44 | 显示全部楼层

RE:求助,cw10.5里导入mqx里的example里的hello例子,build失败

设置了include,bsp,psp的路径后,还是有类型不能识别
回复 支持 反对

使用道具 举报

该用户从未签到

21

主题

71

帖子

0

新手上路

Rank: 1

积分
133
最后登录
1970-1-1
 楼主| 发表于 2014-3-6 20:00:38 | 显示全部楼层

RE:求助,cw10.5里导入mqx里的example里的hello例子,build失败

路径设置没有问题,怎么就这么多问题呢?连user_config都不认识,这个路径到底怎么回事呀,求大神指点!!!!
Description        Resource        Path        Location        Type
undefined identifier '_mqx_int'        lwsem.h        /psp_twrk60d100m/PSP Generic/include        line 99        C/C++ Problem
undefined identifier 'QUEUE_STRUCT'        lwsem.h        /psp_twrk60d100m/PSP Generic/include        line 89        C/C++ Problem
undefined identifier 'LWSEM_STRUCT'        lwsem.h        /psp_twrk60d100m/PSP Generic/include        line 101        C/C++ Problem
undefined identifier '_file_size'        fio.h        /psp_twrk60d100m/PSP Generic/include        line 148        C/C++ Problem
undefined identifier '_file_size'        fio.h        /psp_twrk60d100m/PSP Generic/include        line 145        C/C++ Problem
undefined identifier '_mqx_uint'        fio.h        /psp_twrk60d100m/PSP Generic/include        line 142        C/C++ Problem
undefined identifier '_mqx_uint'        fio.h        /psp_twrk60d100m/PSP Generic/include        line 139        C/C++ Problem
undefined identifier 'pointer'        fio.h        /psp_twrk60d100m/PSP Generic/include        line 136        C/C++ Problem
undefined identifier 'char_ptr' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60n512/PSP Generic/include        line 272        C/C++ Problem
the parameter 'QUEUE_STRUCT_PTR' has not been declared        queue.h        /psp_twrk60n512/PSP Generic/include        line 125        C/C++ Problem
undefined identifier 'IO_OPEN_FPTR' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60n512/PSP Generic/include        line 275        C/C++ Problem
undefined identifier 'QUEUE_ELEMENT_STRUCT' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60n512/PSP Generic/include        line 263        C/C++ Problem
undefined identifier 'IO_WRITE_FPTR' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60n512/PSP Generic/include        line 284        C/C++ Problem
undefined identifier 'IO_IOCTL_FPTR' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60n512/PSP Generic/include        line 287        C/C++ Problem
undefined identifier 'IO_CLOSE_FPTR' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60n512/PSP Generic/include        line 278        C/C++ Problem
undefined identifier 'IO_READ_FPTR' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60n512/PSP Generic/include        line 281        C/C++ Problem
preprocessor #error directive        mqx_cnfg.h        /psp_twrk60d100m/PSP Generic/include        line 99        C/C++ Problem
undefined identifier 'IO_UNINSTALL_FPTR' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60n512/PSP Generic/include        line 290        C/C++ Problem
undefined identifier 'pointer' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60n512/PSP Generic/include        line 293        C/C++ Problem
the file 'user_config.h' cannot be opened        mqx_cnfg.h        /psp_twrk60d100m/PSP Generic/include        line 93        C/C++ Problem
object '_PTR_' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1302        C/C++ Problem
object '_PTR_' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1303        C/C++ Problem
object '_PTR_' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1304        C/C++ Problem
preprocessor #error directive        mqx_cnfg.h        /psp_twrk60n512/PSP Generic/include        line 99        C/C++ Problem
object '_PTR_' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1305        C/C++ Problem
the file 'user_config.h' cannot be opened        mqx_cnfg.h        /psp_twrk60n512/PSP Generic/include        line 93        C/C++ Problem
object '_PTR_' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1306        C/C++ Problem
object '_mqx_uint' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1309        C/C++ Problem
object '_mqx_uint' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1310        C/C++ Problem
object '_mqx_uint' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1294        C/C++ Problem
object '_mqx_uint' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1296        C/C++ Problem
object 'uint_32' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1298        C/C++ Problem
object '_PTR_' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1299        C/C++ Problem
object '_PTR_' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1300        C/C++ Problem
object '_PTR_' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1301        C/C++ Problem
object '_mqx_uint' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1272        C/C++ Problem
object '_mqx_uint' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1271        C/C++ Problem
object '_mqx_uint' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1274        C/C++ Problem
object '_mqx_uint' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1273        C/C++ Problem
object '_mqx_uint' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1275        C/C++ Problem
undefined identifier 'boolean'        fio.h        /psp_twrk60d100m/PSP Generic/include        line 151        C/C++ Problem
undefined identifier '_mqx_int'        fio.h        /psp_twrk60d100m/PSP Generic/include        line 153        C/C++ Problem
undefined identifier 'MQX_FILE'        fio.h        /psp_twrk60d100m/PSP Generic/include        line 155        C/C++ Problem
undefined identifier 'MQX_FILE_PTR'        fio.h        /psp_twrk60d100m/PSP Generic/include        line 161        C/C++ Problem
undefined identifier 'IO_WRITE_FPTR'        io.h        /psp_twrk60n512/PSP Generic/include        line 284        C/C++ Problem
undefined identifier 'IO_READ_FPTR'        io.h        /psp_twrk60n512/PSP Generic/include        line 281        C/C++ Problem
undefined identifier 'IO_CLOSE_FPTR'        io.h        /psp_twrk60n512/PSP Generic/include        line 278        C/C++ Problem
undefined identifier 'IO_OPEN_FPTR'        io.h        /psp_twrk60n512/PSP Generic/include        line 275        C/C++ Problem
undefined identifier 'char_ptr'        io.h        /psp_twrk60n512/PSP Generic/include        line 272        C/C++ Problem
undefined identifier 'QUEUE_ELEMENT_STRUCT'        io.h        /psp_twrk60n512/PSP Generic/include        line 263        C/C++ Problem
the file 'arm/ansi_prefix.ARM.h' cannot be opened (included from:        E:\K60\CW_for_MCU\tools\CW MCU v10.5\MCU\ARM_EABI_Support\ewl\EWL_C\include\ansi_parms.h:13        E:\K60\CW_for_MCU\tools\CW MCU v10.5\MCU\ARM_EABI_Support\ewl\EWL_C\include\string.h:11        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\mqx.h:1246        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:35)        hello_twrk60d100m                line 20, external location: E:\K60\CW_for_MCU\tools\CW MCU v10.5\MCU\ARM_EABI_Support\ewl\EWL_C\include\ewlGlobals.h        C/C++ Problem
undefined identifier 'pointer'        io.h        /psp_twrk60n512/PSP Generic/include        line 293        C/C++ Problem
undefined identifier 'IO_IOCTL_FPTR'        io.h        /psp_twrk60n512/PSP Generic/include        line 287        C/C++ Problem
undefined identifier 'IO_UNINSTALL_FPTR'        io.h        /psp_twrk60n512/PSP Generic/include        line 290        C/C++ Problem
object '_mqx_uint' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1321        C/C++ Problem
object '_mqx_uint' redefined        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1317        C/C++ Problem
undefined identifier 'LWSEM_STRUCT'        lwsem.h        /psp_twrk60n512/PSP Generic/include        line 101        C/C++ Problem
undefined identifier '_mqx_int'        lwsem.h        /psp_twrk60n512/PSP Generic/include        line 99        C/C++ Problem
undefined identifier 'QUEUE_STRUCT'        lwsem.h        /psp_twrk60n512/PSP Generic/include        line 89        C/C++ Problem
the file 'psp_cpu.h' cannot be opened        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1167        C/C++ Problem
undefined identifier 'QUEUE_ELEMENT_STRUCT' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60d100m/PSP Generic/include        line 263        C/C++ Problem
undefined identifier 'IO_READ_FPTR' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60d100m/PSP Generic/include        line 281        C/C++ Problem
undefined identifier 'IO_CLOSE_FPTR' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60d100m/PSP Generic/include        line 278        C/C++ Problem
undefined identifier 'IO_OPEN_FPTR' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60d100m/PSP Generic/include        line 275        C/C++ Problem
undefined identifier 'char_ptr' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60d100m/PSP Generic/include        line 272        C/C++ Problem
the parameter 'QUEUE_STRUCT_PTR' has not been declared        queue.h        /psp_twrk60d100m/PSP Generic/include        line 125        C/C++ Problem
the file 'psptypes.h' cannot be opened        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 91        C/C++ Problem
the file 'psp_supp.h' cannot be opened        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 100        C/C++ Problem
the file 'psp_comp.h' cannot be opened        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 99        C/C++ Problem
undefined identifier 'uint_32'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 157        C/C++ Problem
undefined identifier 'uint_16'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 156        C/C++ Problem
undefined identifier 'pointer'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 590        C/C++ Problem
the file 'x86/stdarg.win32.h' cannot be opened (included from:        E:\K60\CW_for_MCU\tools\CW MCU v10.5\MCU\ARM_EABI_Support\ewl\EWL_C\include\stdarg.h:17        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:42        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        hello_twrk60d100m                line 24, external location: E:\K60\CW_for_MCU\tools\CW MCU v10.5\MCU\ARM_EABI_Support\ewl\EWL_C\include\cstdarg        C/C++ Problem
undefined identifier 'TASK_FPTR'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 985        C/C++ Problem
unexpected end of file        hello_twrk60d100m                         C/C++ Problem
undefined identifier '_mqx_uint'        fio.h        /psp_twrk60n512/PSP Generic/include        line 142        C/C++ Problem
undefined identifier '_file_size'        fio.h        /psp_twrk60n512/PSP Generic/include        line 145        C/C++ Problem
undefined identifier '_file_size'        fio.h        /psp_twrk60n512/PSP Generic/include        line 148        C/C++ Problem
undefined identifier 'uint_32'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 900        C/C++ Problem
undefined identifier 'boolean'        fio.h        /psp_twrk60n512/PSP Generic/include        line 151        C/C++ Problem
undefined identifier 'IO_WRITE_FPTR' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60d100m/PSP Generic/include        line 284        C/C++ Problem
undefined identifier 'IO_IOCTL_FPTR' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60d100m/PSP Generic/include        line 287        C/C++ Problem
undefined identifier 'uint_32'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1015        C/C++ Problem
undefined identifier 'IO_UNINSTALL_FPTR' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60d100m/PSP Generic/include        line 290        C/C++ Problem
undefined identifier 'pointer'        fio.h        /psp_twrk60n512/PSP Generic/include        line 136        C/C++ Problem
undefined identifier 'pointer' (included from:        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\include\fio.h:260        E:\K60\code_GA\Freescale_MQX_4_0\mqx\source\bsp\twrk60d100m\bsp.h:49        E:\K60\code_GA\Freescale_MQX_4_0\mqx\examples\hello\hello.c:36)        io.h        /psp_twrk60d100m/PSP Generic/include        line 293        C/C++ Problem
undefined identifier '_mqx_uint'        fio.h        /psp_twrk60n512/PSP Generic/include        line 139        C/C++ Problem
undefined identifier '_mem_size'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 988        C/C++ Problem
undefined identifier 'TASK_TEMPLATE_STRUCT_PTR'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1076        C/C++ Problem
undefined identifier 'pointer'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1062        C/C++ Problem
undefined identifier 'pointer'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1054        C/C++ Problem
undefined identifier 'pointer'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 1108        C/C++ Problem
undefined identifier '_mqx_uint'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 782        C/C++ Problem
undefined identifier 'uint_32'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 780        C/C++ Problem
undefined identifier 'uint_32'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 826        C/C++ Problem
undefined identifier 'MQX_FILE'        fio.h        /psp_twrk60n512/PSP Generic/include        line 155        C/C++ Problem
undefined identifier 'MQX_INT_SIZE_IN_BITS'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 893        C/C++ Problem
undefined identifier '_mqx_int'        fio.h        /psp_twrk60n512/PSP Generic/include        line 153        C/C++ Problem
undefined identifier 'uint_32'        mqx.h        /bsp_twrk60n512/twrk60n512 BSP Files        line 829        C/C++ Problem
undefined identifier 'MQX_FILE_PTR'        fio.h        /psp_twrk60n512/PSP Generic/include        line 161        C/C++ Problem
回复 支持 反对

使用道具 举报

该用户从未签到

145

主题

4926

帖子

0

金牌会员

Rank: 6Rank: 6

积分
9267
最后登录
1970-1-1
发表于 2014-3-7 09:15:25 | 显示全部楼层

RE:求助,cw10.5里导入mqx里的example里的hello例子,build失败

感谢楼主分享经验,下面的问题我会转交给MQX的工程师,请耐心等待哦。
回复 支持 反对

使用道具 举报

该用户从未签到

7

主题

196

帖子

0

中级会员

Rank: 3Rank: 3

积分
380
最后登录
1970-1-1
发表于 2014-3-7 09:27:43 | 显示全部楼层

回复:求助,cw10.5里导入mqx里的example里的hello例子,build失败

楼主用的MQX 4.0 吧, Hello Demo不需要加路径的, 请删除。 需要先编译一下库文件, BSP, PSP, MFS ,再编译Hello就可以正常编译了
回复 支持 反对

使用道具 举报

该用户从未签到

21

主题

71

帖子

0

新手上路

Rank: 1

积分
133
最后登录
1970-1-1
 楼主| 发表于 2014-3-7 10:06:59 | 显示全部楼层

RE:求助,cw10.5里导入mqx里的example里的hello例子,build失败

多谢指点,这个方式是不是也是体现mqx的裁剪分离。确实比较灵活。
还有个问题,就是编译出来的hello.elf,这个是elf文件,用jtag烧入的话
1、这个elf里应该也包括了bootloader的那一点启动代码吧?
2、那bootloader那块不用转成s19格式烧入吗?而是作为一个elf文件,一次烧进去运行?我的理解可能有问题,麻烦指点一下,多谢!
回复 支持 反对

使用道具 举报

该用户从未签到

21

主题

71

帖子

0

新手上路

Rank: 1

积分
133
最后登录
1970-1-1
 楼主| 发表于 2014-3-7 15:18:24 | 显示全部楼层

RE:求助,cw10.5里导入mqx里的example里的hello例子,build失败

已经解决,不用管bootloader了,单跑应用就不用他,mcu的开发与powerpc上的linux开发区别还是很大哦,还是直接找fae快些,这个问题是不是太简单了
回复 支持 反对

使用道具 举报

该用户从未签到

2

主题

113

帖子

0

中级会员

Rank: 3Rank: 3

积分
326
最后登录
1970-1-1
发表于 2014-3-7 15:19:15 | 显示全部楼层

RE:求助,cw10.5里导入mqx里的example里的hello例子,build失败

回楼上:
1,一般来讲,这个编译好的elf文件中包含的启动代码不叫bootloader. 这段代码只有一些简单的初始memory, SP指针等的一些功能。
我们把整个生成的这个.elf文件称为application.bootloader一般是指一个单独开发工程,这个bootloader工程的特点是在程序启动后会有一个选择是选择进入应用程序还是更新flash中的应用程序。建议仔细阅读FSL 的应用笔记AN2295(可以直接从官网上下载)。
2,还是刚才上面的那个问题,这段初始化代码是必须有的,硬件初始完成之后,系统才会进入主函数main().所以不需要也能单独转成s19文件,因为他是应用程序的一部分。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条

Archiver|手机版|小黑屋|恩智浦技术社区

GMT+8, 2025-7-20 23:58 , Processed in 0.113404 second(s), 31 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

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