打印

LPC23XX的例程,编译后启动代码部分错误 很多,请高手帮忙看

[复制链接]
3068|6
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
tianlu200808|  楼主 | 2013-11-8 23:05 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 tianlu200808 于 2013-11-8 23:06 编辑

Building configuration: ADC - Debug_RAM
Updating build tree...
lpc23xx_cstartup.s79
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 52
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 57
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 62
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 64
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 66
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 68
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 71
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 73
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 79
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 81
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 83
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 85
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 87
Error[40]: Bad instruction C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 90
Warning[24]: ENDMOD directive is ignored (only one module is allowed) C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 101
Error[73]: End-of-module missing C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 106
Error[111]: More than one module is not allowed C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 106
Error[51]: Can't be both PUBLIC and EXTERN C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 117
Error[42]: Duplicate label:'?cstartup' C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 124
Warning[24]: ENDMOD directive is ignored (only one module is allowed) C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 192
Error[109]: Expression is too complex C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 190
Error[109]: Expression is too complex C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 190
Error[109]: Expression is too complex C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 190
Error[109]: Expression is too complex C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 190
Error[109]: Expression is too complex C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 190
Error[109]: Expression is too complex C:\Documents and Settings\Administrator\桌面\新建文件夹\LPC23XX_IAR_Demo\code.lpc23xx.peripherals.iar\Common\src\lpc23xx_cstartup.s79 190
Error while running Assembler

Total number of errors: 24
Total number of warnings: 2
LPC23XX_IAR_Demo.rar (902.62 KB)

https://bbs.21ic.com/forum.php?mod=attachment&aid=MjE0OTE0fDAzMDVmYjM2YjIzZmNkYjY1YzEwYjUxYWQ0MmFkYjQ2fDE3MzUxOTYyNDM%3D&request=yes&_f=.rar

相关帖子

沙发
阿南| | 2013-11-9 05:45 | 只看该作者
不要使用中文路径和空格,试试

使用特权

评论回复
板凳
戈卫东| | 2013-11-9 10:56 | 只看该作者
工具不相容...
你用的工具不支持这种汇编语言格式.

使用特权

评论回复
地板
戈卫东| | 2013-11-9 11:16 | 只看该作者
lpc23xx_cstartup.s79 -----这个文件不被IAR所接受. 你可以试一试用IAR自带的启动文件替换看看.(随便找一个IAR的范例, 位置大约是------ D:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\examples\NXP\LPC23xx\IAR-LPC-2378-SK\simple\Common\src )

使用特权

评论回复
评分
参与人数 1威望 +1 收起 理由
tianlu200808 + 1 赞一个!
5
黄小俊| | 2013-11-9 19:54 | 只看该作者

使用特权

评论回复
6
tianlu200808|  楼主 | 2013-11-28 23:22 | 只看该作者
戈卫东 发表于 2013-11-9 11:16
lpc23xx_cstartup.s79 -----这个文件不被IAR所接受. 你可以试一试用IAR自带的启动文件替换看看.(随便找一个 ...

自带的启动文件可以,但我下载的是例程呀,不可能不能用的呀

使用特权

评论回复
7
tianlu200808|  楼主 | 2013-11-28 23:23 | 只看该作者
戈卫东 发表于 2013-11-9 10:56
工具不相容...
你用的工具不支持这种汇编语言格式.

我下的是例程呀,IAR FOR ARM的,不会不行吧

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

14

主题

30

帖子

2

粉丝