野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 15208|回复: 2

为啥用IAR建工程出现错误startup_stm32f10x_md.s 的错误?

[复制链接]
发表于 2015-4-21 17:28:34 | 显示全部楼层 |阅读模式
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 126
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 129
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 130
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 137
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 141
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 142
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 144
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 146
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 147
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 149
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 151
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 152
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 154
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 156
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 157
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 159
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 161
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 162
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 164
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 165
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 166
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 168
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 170
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 171
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 173
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 174
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 175
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 177
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 178
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 179
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 181
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 183
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 185
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 186
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 187
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 188
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 189
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 190
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 191
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 192
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 193
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 194
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 195
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 196
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 197
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 198
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 199
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 200
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 201
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 202
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 203
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 204
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 205
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 206
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 207
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 208
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 209
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 210
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 211
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 212
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 213
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 214
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 215
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 216
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 217
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 218
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 219
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 220
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 221
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 222
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 223
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 224
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 225
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 226
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 227
Error[40]: Bad instruction F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 275
Error[413]: 'ALIGN' is illegal. Use directive ALIGNROM or ALIGNRAM (the first parameter is raised to  F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 277
the power of 2, the second is a 32-bit fill value).
Error[0]: Invalid syntax F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 282
Error[413]: 'ALIGN' is illegal. Use directive ALIGNROM or ALIGNRAM (the first parameter is raised to  F:\keil实验\my proctect\CMSIS\startup_stm32f10x_md.s 301
the power of 2, the second is a 32-bit fill value).
Error while running Assembler
stm32f10x_adc.c  
我里面就写一个main函数且无内容为啥还出错。
#include"stm32f10x.h"

int main (void)
{
  return 0;
}


回复

使用道具 举报

发表于 2015-4-22 08:52:41 | 显示全部楼层
iar的汇编文件跟mdk的汇编文件是不通用的,注意一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-4-27 18:10:01 | 显示全部楼层
懂得了,,,,,,,,,
回复

使用道具 举报

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

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-11-23 07:41 , Processed in 0.026700 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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